Skip to content

Commit ac91c6a

Browse files
Remove process dependency from log functions (#8530)
* Remove process dependency from log functions * Fix check * update changelog Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
1 parent 4f40076 commit ac91c6a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2929
- Try using local `postcss` installation first in the CLI ([#8270](https://github.com/tailwindlabs/tailwindcss/pull/8270))
3030
- Allow default ring color to be a function ([#7587](https://github.com/tailwindlabs/tailwindcss/pull/7587))
3131
- Don't inherit `to` value from parent gradients ([#8489](https://github.com/tailwindlabs/tailwindcss/pull/8489))
32+
- Remove process dependency from log functions ([#8530](https://github.com/tailwindlabs/tailwindcss/pull/8530))
3233

3334
### Changed
3435

src/util/log.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import colors from 'picocolors'
33
let alreadyShown = new Set()
44

55
function log(type, messages, key) {
6-
if (process.env.JEST_WORKER_ID !== undefined) return
6+
if (typeof process !== 'undefined' && process.env.JEST_WORKER_ID) return
77

88
if (key && alreadyShown.has(key)) return
99
if (key) alreadyShown.add(key)

0 commit comments

Comments
 (0)