-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Fix error with formatWebpackMessages trimming warnings #4656
Fix error with formatWebpackMessages trimming warnings #4656
Conversation
This seems like a good fix. I'd like to get the test passing before merging it though. We're currently working on fixing the tests. |
Do you guys think we should check also for |
Done it, I think it makes sense if seomhow the |
Another case with the thread loader happened, this one happens when there are issues in the build, not the user code. Here is the The error message was clipped also in this case, fixed it in fdcdd9a |
…create-react-app#4656 is merged into react-dev-utils.
This is fixed in |
* Initial implementation of Webpack 4 support. * Updated console-snoop, mocha-react-proptype-checker, and sinon * Workaround for incorrectly parsed error/warning stats until facebook/create-react-app#4656 is merged into react-dev-utils. * Update all remaining dependencies to latest releases. * Remove karma-dirty-chai (abandoned) * Use dirty-chai directly (rather than karma-dirty-chai plugin), redirect sinon requests to the prebuilt bundle (rather than esm bundle), hide performance output, simplify output to errors only, and update webpack config to support webpack 4. * Temporary workaround until karma-webpack issues are resolved and update published to NPM. * Updated dependencies. * Updates and fixed support for webpack import() syntax. * Babel cleanup, remove unneeded plugins, add react preset options, use loose option on class properties, and fix spacing * Support full browserslist format * Webpack message format fix has landed upstream * Webpack v4.19.1 added 'browser' mainfield support for electron-renderer * Updated dependencies * Switch from UglifyJsPlugin to TerserPlugin, as uglify-es was discontinued and terser is the new community-driven fork. * Fix css extension for chunk stylesheets * @enact/dev-utils 2.0.0 release update
Hey, I've been using the updated react-dev-utils and found a bug in formatWebpackMessages that happens with newer webpack versions.
Basically webpack (or the thread-loader) in the
stats.toJson().warnings
now outputs also this line, containing a Module Warning or Module Error (?):so the
lines
array now becomes this (see second line):instead of the old one
This fucks with the thread-loader message remover and actually removes the body of the warning.
This PR checks if that line is present and removes it since it's not relevant to the user.