import-cost
import-cost copied to clipboard
How dose it calculating the size?
material-ui: v3.9.2 import cost: v1.0.7.1
Very interesting plugin!
Can you please explain how are calculating the size?
I compared the result with 'webpack-bundle-analyzer' and got different results.
For example:
Dialog size calculated by import cost:
Dialog size calculated by webpack-bundle-analyzer:
Are they calculating different things?
See upstream module blog post: https://citw.dev/posts/import-cost
The comment is valid: we don't calculate size manually we use the external package "import-cost" for it.