4 ms·
Slightly unrelated, but it always amazes me how big the dependency tree in js world can get. Hundreds of megabytes for SPAs. I don't understand js development o
by rplnt 5y ago
Slightly unrelated, but it always amazes me how big the dependency tree in js world can get. Hundreds of megabytes for SPAs. I don't understand js development or how anyone can live with that, but since I do need to edit it here and there I stumbled upon this handy tool.
https://github.com/voidcosmos/npkill https://github.com/voidcosmos/npkill
- zkochan 5y agoIt is unrelated because you don't have this issue with pnpm. pnpm uses a central content-addressable store and each unique file is written only once on a disk. It doesn't matter in how many projects you install the same dependency.
- topaz0 5y agoI think GP was amazed by the sheer number of dependencies, not by the how many of them are duplicated. It also amazes me. People talking above about having 10s of GB of dependencies. Crazy to me.
- crispyalmond 5y agoThis amazes me as well. At work we have a simple website which has 1 GB of node_modules and the actual source code is well under a megabyte.
- bavell 5y agoI'm very curious to know how in the world a node_modules directory can grow above 1GB! Which dependencies are the worst offenders? Is it dominated by a few huge deps?