-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
Fixed browser support #42
Conversation
Codecov Report
@@ Coverage Diff @@
## master #42 +/- ##
=======================================
Coverage 98.77% 98.77%
=======================================
Files 2 2
Lines 163 163
Branches 29 28 -1
=======================================
Hits 161 161
Misses 1 1
Partials 1 1
Continue to review full report at Codecov.
|
Hey :) Can we change these to |
Of course that will work too :) |
done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, thanks!
* Stricter isNode check * fix: include `process.stdout` for `isNode` check related: lukeed/kleur#42 Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>
Hey @lukeed how are you?
Every bundler like browserify, parcel and webpack is using a shim of
process
that doesn't havestdout
implemented.So when I try to use kleur in the browser it throws an error that process.stdout is undefined.
With this minor change we can have support for the browser too.