Revisiting Node modules
summary
Yarn’s Plug'n'Play replaces node_modules with a single generated .pnp.js that stores a static resolution table, so Node no longer does repeated filesystem lookups. The demo claims installs under five seconds and no node_modules on disk, cutting huge IO and preventing accidental implicit deps by enforcing package boundaries. It actually builds a runtime mapping at install time and uses it for resolution, trading compatibility work for much faster installs and more deterministic deployments.
AI-written summary · about
chapters (4)
- 0:00Start
- 1:27node_modules flaws The ugly sides of a system used by the planet
- 2:19Overview of the resolution The Node resolution: simple, makes no assumptions
- 3:25Static resolution Leveraging semantic installations to the rescue
related talks
22mWhat makes pnpm performant
51mYarn Berry: a next generation package manager
22mYarn — 2019 and Beyond
16mThe future of Node dependency management
39mThe Structure of Node.JS Applications
28mHow npm Works
30mnpm 5: Bringing Package Management to the Future
30mWhat's Really Going on Inside Your Node_Modules Folder
