-
-
Notifications
You must be signed in to change notification settings - Fork 477
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
Incorrect size when using Webpack's BannerPlugin
#598
Comments
BannerPlugin
What did you expect to have? Do note that the "without BannerPlugin" image does not show what the size of src is |
You can see on the second image that a lot of code from The expected parsed size is something like 450kB. |
Hmm yeah, I think the way we parse bundles requires the first thing in the bundle to be the start of a webpack module. So using something like Source: https://github.com/webpack-contrib/webpack-bundle-analyzer/blob/v4.8.0/src/parseUtils.js If this is the case, then this turns to a feature request to support |
Done! Here's the feature request: #601 I'm closing this issue then. Thank you for your guidance 🙏 |
Thank you for opening the feature request |
Issue description
Adding the following
BannerPlugin
to a build:changes the results of webpack-bundle-analyzer.
Without using
BannerPlugin
:Using
BannerPlugin
:These results are wrong (just look at the size of
src
).Do note that this happens with an entry point that is a Worker, I did not verify if this also happens with other kinds of entry points.
Technical info
Debug info
I use this module as a plugin, without any options:
The text was updated successfully, but these errors were encountered: