Re:Never update anything
by MrBuddyCasino on Saturday November 06, 2021 @09:13AM
(#29129938)
> the easiest way to make things smaller was to make JS modules as small as possible so code could opt-in to subsets of a library it wanted to use
Also due to JS having a very small stdlib. Compare built-in functions to eg Kotlin, its a different world.
Fast forward 5 or 8 years and we have a very fragmented ecosystem of NPM modules—some built to be used on the web, some not—built on a legacy of tiny modules and deep dependency trees.
Add on to all that the pace at which the JS and browser ecosystem moves and it’s not too surprising that things have ended up the way they are.
Teams don’t need to build projects with deep dependency trees, but it’s pretty hard to avoid them with the NPM registry in the shape it’s in.