siddharthkp/cost-of-modules

Strange size for some dependecies

Closed this issue · 3 comments

After running cost-of-modules on one of the projects, the largest dependency turned out to be babel-preset-es2015 with the size of 320.52M :
image
Although after running cost-of-modules on the clean repo with only babel-preset-es2015 dependency the size was mere 14.55M :
image

I guess something is wrong with the way size is calculated.

Interesting. I look at the modules already installed in node_modules instead of doing a clean install.
This is for faster results, but it might have some weird results.

Notice that the number of children itself changed, can you give me a way to reproduce this? What were the other dependencies in the first screenshot?

@phil-r Closing this, hit me up with some of this information when you can 😄

@siddharthkp I've tested it recently - it's not the case anymore. Thanks!