Open
Description
I'm reading Plug'n'Play docs after a while to learn (again 🙈) what it really is. It has these sections:
- The node_modules problem
- Fixing node_modules
- Caveats and work-in-progress
No. 1 & 2 read nicely and are a great introduction to why PnP exists and how the things are much better with it. Also no. 3 is a good overview of the current compatibility.
However, I couldn't find answers to a couple of questions I had about PnP:
- How does it actually work? Where are the files stored?
- Is Yarn overriding
require
? Or how exactly is it "telling Node.js where to find dependencies"? - If the actual files are stored outside of the current project directory, does it affect things like Docker build?
- Are there some objective disadvantages of PnP? Things to be careful about when adopting this installation strategy?
Plus there are some minor things like what does status = Transparent mean in the compatibility table. But given that there are real-world problems with PnP on some projects, the page feels to be "too positively" written.