Skip to content

[Docs] Explain PnP a bit more #850

Open
@borekb

Description

@borekb

I'm reading Plug'n'Play docs after a while to learn (again 🙈) what it really is. It has these sections:

  1. The node_modules problem
  2. Fixing node_modules
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationThis issue or pull request is about the documentationenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions