From f1e2de8f6dcc28f53355b68574f179facf6140e2 Mon Sep 17 00:00:00 2001 From: Ivo Sabev Date: Tue, 7 Jun 2022 07:43:38 +0300 Subject: [PATCH 1/3] Remove process dependency from log functions --- src/util/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/log.js b/src/util/log.js index 5890c60f2f99..4f2b2ae92e32 100644 --- a/src/util/log.js +++ b/src/util/log.js @@ -3,7 +3,7 @@ import colors from 'picocolors' let alreadyShown = new Set() function log(type, messages, key) { - if (process.env.JEST_WORKER_ID !== undefined) return + if (typeof process.env.JEST_WORKER_ID !== 'undefined') return if (key && alreadyShown.has(key)) return if (key) alreadyShown.add(key) From 1f170927dbc20d27018c92c7d4a532174bf20ff7 Mon Sep 17 00:00:00 2001 From: Ivo Sabev Date: Tue, 7 Jun 2022 07:55:00 +0300 Subject: [PATCH 2/3] Fix check --- src/util/log.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/log.js b/src/util/log.js index 4f2b2ae92e32..0df5c87192a1 100644 --- a/src/util/log.js +++ b/src/util/log.js @@ -3,7 +3,7 @@ import colors from 'picocolors' let alreadyShown = new Set() function log(type, messages, key) { - if (typeof process.env.JEST_WORKER_ID !== 'undefined') return + if (typeof process !== 'undefined' && process.env.JEST_WORKER_ID) return if (key && alreadyShown.has(key)) return if (key) alreadyShown.add(key) From ff4ef5b3fa9931c7e26d279f81d3640930dfa1bf Mon Sep 17 00:00:00 2001 From: Robin Malfait Date: Tue, 7 Jun 2022 11:13:48 +0200 Subject: [PATCH 3/3] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ddde401b5875..6a4a7acb6eef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Try using local `postcss` installation first in the CLI ([#8270](https://github.com/tailwindlabs/tailwindcss/pull/8270)) - Allow default ring color to be a function ([#7587](https://github.com/tailwindlabs/tailwindcss/pull/7587)) - Don't inherit `to` value from parent gradients ([#8489](https://github.com/tailwindlabs/tailwindcss/pull/8489)) +- Remove process dependency from log functions ([#8530](https://github.com/tailwindlabs/tailwindcss/pull/8530)) ### Changed