by cloudsloth · 11y ago · 0 comments
Oh my goodness.
And what would a more complete package look like? "AgentME's bag of useful functions"? Many of them don't make sense to group together.
The overhead is negligible: running `npm install` in production is considered an anti-pattern and because of how npm's dependency resolution works each dependency can have different copies of the same (second order) dependency. The likelihood that there will be version conflicts (and thus duplication) is far smaller when there are smaller more specialised packages instead of a few big ones.
It's not about package size. Nobody cares about package size (except for frontend code but it's fairly easy to pare those deps down to the bare minimum).
Also, nearly all of jQuery's deps are development deps not needed in production. Those deps are only interesting for maintainers -- building jQuery yourself is likely the wrong thing to do. It's only necessary because jQuery doesn't yet expose its "submodules" properly.
npm install jquery
If you want to build it from source, use the management tool that jQuery was designed to use, and was designed to support jQuery.It would be just as ridiculous to complain about how hard it is to build ffmpeg from source by using npm as the package manager.
many of those dependencies are testing related including some large dependencies for virtual dom stuff to mock the browser. Plus it uses grunt which, while I don't really like it, it does have the benefit over make that it works out of the box on windows which is something jquery has to support.