Hacker News new | ask | show | jobs
by currywurst 3536 days ago
I wish some kind of "auto-bundle" feature prevented the creation of multiple hundred MB's worth of tests, readmes and docs on disk when something like single "babel.bundle.js" file would do.

Is it really important that one knows that a tool dependency uses left-pad ? What could be the drawbacks of such bundling?

2 comments

You can run `yarn clean` and it will clear out all the extra files you don't need: https://yarnpkg.com/en/docs/cli/clean
Great !! That sounds like it should help atleast .. hope the heuristics improve to capture most npm patterns
In theory, those submodules should be npmignoring those files and subdirectories, right?