3 ms·
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
by bfred_it 8y 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.
- krapp 8y ago>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.
- eeZah7Ux 8y ago> 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.