|
I am currently trying to monitor a specific module's output bundle size that is in an asset. I tried creating a webpack plugin to simply log down all the modules' sizes:
|
Answered by
Pirororor
Dec 31, 2024
Replies: 1 comment 3 replies
For Code - https://github.com/webpack/webpack/blob/main/lib/asset/AssetGenerator.js#L591 Same for any modules |
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks a lot for your help.
This is the issue I face when using module's
sizefield.After researching more, seems that
module's size field is pre-minification and pre-bundling, and the size directly corresponds to the source's size. Since I am lookign for how much each module's size takes out in the output bundle, seems like webpack-bundle-analyzer's way of manually estimating how much size each module uses up in a bundle is the way to go.