I mean, we used to all just use jQuery and lodash. Then the cool kids decided that wasn't cool anymore, and every function should be a separate package.
I'm sure the wheel will come around again.
I'm sure the wheel will come around again.
edit no, the one with the evolution of robots and such
Tree shaking still isn't that great or widely available, so separate packages mean you can do this manually.
This sounds like an opinion based on the state of web development a decade ago.
In 2020 on the other hand the Google Closure Compiler has been a mature project for years, and even projects not explicitly focused on dead code elimination (bundlers like Webpack and Rollup) do a decently thorough job of cutting out unnecessary code with the right plugins.