Replies: 3 comments
-
Webpack Bundle AnalyzerOnly needs few fields of stats, but have some limit for now. fields:
limits:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
It would be better if you could summarize the bundle analyzer implementation |
Beta Was this translation helpful? Give feedback.
0 replies
-
BundleStatsfields: bundle-stats/packages/plugin-webpack-filter/src/index.ts |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Tracking issue of <Fill in the RFC title above>
Summary
The stats option lets you precisely control what bundle information gets displayed.
Motivation
Let users can use tools like
webpack-bundle-analyzer
to analyze their bundle information, and optimize their bundles.Guide-level explanation
Stats is about getting bundle information from compilation.
Since there are too lots of fields in webpack stats json and have strong relation with its compilation data and methods, port all of these fields to rspack stats is hard and needs rspack compilation implementation highly aligned with webpack compilation.
So fields in rspack stats will be implemented on-demand, and listing which fields needs implemented with demand in the comments is encouraged.
Reference-level explanation
use options to control which field is included in stats json will be implemented in js side.
Prior art
Stats in webpack has three concept:
The main idea about stats in webpack is still getting bundle information from compilation, but it can be customized by its hooks (which is added in webpack5 and not used widely).
Beta Was this translation helpful? Give feedback.
All reactions