Course lesson

WTF is Yarn Plug'n'Play (PnP)?

Yarn PnP is a new feature set on by default with yarn 2. PnP gets rid of your projects nodemodules in favor of a .pnp.js file.

Duration
2 min
Access
Free
Transcript
Available

Yarn PnP is a new feature set on by default with yarn 2. PnP gets rid of your projects node_modules in favor of a .pnp.js file.

This .pnp.js file maps all of the packages installed in your project to where Yarn has placed them on your disk. This enables faster, more reliable installs because you don't have to write to disk as often.