Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use colors when used in web browsers #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ingmarh
Copy link

@ingmarh ingmarh commented Jul 27, 2017

In a universal app, we want to use postcss-wrap also on the client-side with Webpack. Unfortunately, our build fails with Critical dependencies warnings caused by this issue with the colors package.

This change allows to have module bundlers like Webpack leave out the colors dependency in the resulting browser bundle (e.g. for use with universal apps). colors doesn't seem to work in web browsers anyway.

Also, use the safe API of colors, which doesn't extend String.prototype.

This allows to have module bundlers like Webpack leave out the `colors`
dependency in the resulting browser bundle (e.g. for use with universal
apps).

Also, use the safe API of `colors`, which doesn't extend
`String.prototype`.
Fixes tests (`TypeError: Forked processes must have an IPC channel`
issue).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant