-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Correctly bundle up for browser globals #7661
Conversation
}, | ||
}, | ||
node: { | ||
fs: 'empty', |
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.
🤷♂️
both jest-message-util
and micromatch (a dependency of jest-message-util
) uses fs, but work without it
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.
Seems legit
Looks like |
Not really, it needs to test that the timing in parens is there. Maybe try to make it even slower? |
Pardon, I just assumed that without checking. Then yes, we should fix the flakyness |
* use webpack over browserify for browser test * use webpack over rollup for browser build
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #7109.
I decided to go for webpack, since I know it better than I do browserify. Rollup only works with ESM, and migrating to that is hard.
It also seemed unnecessary to have 2 different bundlers
Test plan
Green CI. I've also tested with an html file, and
expect
is available.Note: If we could find some browser version of
chalk
, that would be awesome