-
-
Notifications
You must be signed in to change notification settings - Fork 760
feat(diagnostic): support minification error #10057
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
Conversation
✅ Deploy Preview for rspack canceled.
|
CodSpeed Performance ReportMerging #10057 will not alter performanceComparing 🎉 Hooray!
|
4a62b0b to
2fdf384
Compare
|
Holding off on this PR until it's fully discussed. |
2fdf384 to
d725078
Compare
d1cd205 to
7c80a27
Compare
7c80a27 to
cb515c1
Compare
|
Rebased cc @chenjiahan |
|
👍 |
Summary
This PR supports
StatsError.codeandStatsWarning.code. This is an rspack-specific API, which is not implemented in webpack.StatsErrorCodeis exported as a reference to code used in rspack.ChunkMinificationError: Generated when chunk minification encounters an errorChunkMinificationWarning: Generated when chunk minification encounters an warningModuleParseWarning: Generated when module parsing encounters an warningModuleParseError: Generated when module parsing encounters an errorModuleBuildError: Generated when module loader encounters an errorThe following example shows when minifcation encounters an error:
Its error code is
ChunkMinificationError.trivial changes: Normalize
parsing errorintoparse error. This follows webpack's naming convention, e.gModuleParseError.Note: There are a few snapshot changes due to a few newly added snapshot serializer.
Checklist