jimhigson / oboe.js

A streaming approach to JSON. Oboe.js speeds up web applications by providing parsed objects before the response completes.
http://jimhigson.github.io/oboe.js-website/index.html
Other
4.79k stars 208 forks source link

huge npm package > 7Mb #228

Open drortirosh opened 3 years ago

drortirosh commented 3 years ago

for "dependency-less, lightweight" library, 7Mb package is a bit too large. I suggest not packing entire test suite into the npm package

ScottAwesome commented 3 years ago

not really sure what you mean? according to bundlephobia, its 17KB minified, 5.5KB gzipped: https://bundlephobia.com/result?p=oboe@2.1.5

if you mean don't ship unnecessary directories, I can understand that, but this is not clear in your issue title.

drortirosh commented 2 years ago

Not the minified file - it takes 7 MB in dev environment. the entire "test" folder is packed into the npm package, and is useless. Yes, it only takes space on developer machine - of any project that uses oboe as a dependency.

AcidRaZor commented 2 years ago

check the size of your node_modules directory. its known to be huge

drortirosh commented 2 years ago

yes, the node_modules is huge - for this exact reason (many small packages that don't care about their impact on the total node_modules size...)