You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I noticed the installed size (of dependencies only, not devDependencies) is 410mb.
It looks like ~%80 is coming from babel related modules (which I don't personally use). Is there any way to possibly make these optional, or have a lighter weight distribution in general?
Yep, as @jfirebaugh, npm v2 is the cause of much of our installation troubles and will cause those troubles unavoidable on practically any module that uses Babel.
That said: even with npm v3, size is still an issue and one that we'd love to pare down, so that it's a no-brainer install even for those with very minimal requirements. So reducing size would be very welcome and I'm open to ideas. We use babylon as the parser central to documentation.js, so some reliance on the babel ecosystem would be hard to work away from - supporting a different parser would mean supporting a different AST format, so it might be a door to more complexity rather than less.
Besides Babel, we also just need to keep track of which dependencies are consuming space in node_modules and whether they're pulling their weight.
Closing - happy to accept PRs implementing any significant install size improvements. The problem encountered here is with npm v2, though, so it's not something I can fix.
Activity
jfirebaugh commentedon Nov 28, 2016
Previously: #583. Are you using npm v2?
max-mapper commentedon Nov 28, 2016
Yep. Sorry, searched issues and didnt find that. I guess the fix then is for me to use something that dedupes babel modules.
tmcw commentedon Nov 28, 2016
Hey Max! Good to hear from ya
Yep, as @jfirebaugh, npm v2 is the cause of much of our installation troubles and will cause those troubles unavoidable on practically any module that uses Babel.
That said: even with npm v3, size is still an issue and one that we'd love to pare down, so that it's a no-brainer install even for those with very minimal requirements. So reducing size would be very welcome and I'm open to ideas. We use babylon as the parser central to documentation.js, so some reliance on the babel ecosystem would be hard to work away from - supporting a different parser would mean supporting a different AST format, so it might be a door to more complexity rather than less.
Besides Babel, we also just need to keep track of which dependencies are consuming space in node_modules and whether they're pulling their weight.
tmcw commentedon Dec 23, 2016
Closing - happy to accept PRs implementing any significant install size improvements. The problem encountered here is with npm v2, though, so it's not something I can fix.
perf(dependencies): Move standard-changelog to devDependencies
perf(dependencies): Move standard-changelog to devDependencies (#636)