import-cost icon indicating copy to clipboard operation
import-cost copied to clipboard

How dose it calculating the size?

Open chenop opened this issue 5 years ago • 1 comments

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: image

Dialog size calculated by webpack-bundle-analyzer: image

Are they calculating different things?

chenop avatar Mar 22 '19 07:03 chenop

See upstream module blog post: https://citw.dev/posts/import-cost

buffcode avatar Jul 30 '21 19:07 buffcode

The comment is valid: we don't calculate size manually we use the external package "import-cost" for it.

anstarovoyt avatar Nov 20 '22 17:11 anstarovoyt