Closed Siilwyn closed 6 years ago
these results don't make sense right
The bundle size for a Node.js library doesn't make sense, sure, this tool is mainly for browser libraries. Related #10
Aha, thank you for your reply. I still find it odd it's ten times bigger but okay.
For posterity, I found this awesome service to measure the size of Node.js modules: Package Phobia.
@Siilwyn Yep, that's what Package Phobia was designed for 😄
I also made note of similar tools in the readme if this type of thing interests you: https://github.com/styfle/packagephobia#how-is-this-different
Not sure what's happening here: Running:
npx package-size wreck got
, outputs:Looking at the output
wreck
looks huge. However if I locally install both tools and inspect the total size ofnode_modules
I get this:I understand that
package-size
doesn't look at the modules size but instead the bundle size still these results don't make sense right? How can the bundled size be 10 times bigger than the source?