Hacker News new | ask | show | jobs
by bfred_it 2746 days ago
npm handles sub-dependencies with ease so people aren't afraid to pull in smaller dependencies.

Also since the code has to be downloaded (or uploaded to small lambdas, for example), JS developers are generally weary of depending on large libraries.

1 comments

>Also since the code has to be downloaded (or uploaded to small lambdas, for example), JS developers are generally weary of depending on large libraries.

Isn't a dependency tree of thousands of small, interdependent libraries essentially just a large, distributed library?

Is there really a benefit to that versus compiling those dependencies to a single file, especially given how many NPM packages are just a single small function? The end result in many cases would probably be smaller than a lot of old JQuery plugins.

> Isn't a dependency tree of thousands of small, interdependent libraries essentially just a large, distributed library?

Yes and it's a thousand times worse than a single, large library.