Skip to content

Commit

Permalink
Remove process dependency from log functions (#8530)
Browse files Browse the repository at this point in the history
* Remove process dependency from log functions

* Fix check

* update changelog

Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
  • Loading branch information
ivosabev and RobinMalfait committed Jun 7, 2022
1 parent 4f40076 commit ac91c6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/util/log.js
Expand Up @@ -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 !== 'undefined' && process.env.JEST_WORKER_ID) return

if (key && alreadyShown.has(key)) return
if (key) alreadyShown.add(key)
Expand Down

0 comments on commit ac91c6a

Please sign in to comment.