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.