Skip to content
Discussion options

You must be logged in to vote

Thanks a lot for your help.

It seems that size does not correspond to the size in the asset. (e.g when the asset only contains only 1 module, seems that the module's size is larger than the asset's size.) When is the size field in the module calculated?

This is the issue I face when using module's size field.

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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Pirororor
Comment options

@alexander-akait
Comment options

@Pirororor
Comment options

Answer selected by Pirororor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants