by ilumanty · 4y ago · 0 comments
If offline installs is what you want, I don’t see any advantage of node_modules compared to this feature - only disadvantages (size, noise, and cross-platform incompatibilities).
On an Ubuntu x86_64 machine with an SSD, require("react") with Yarn PnP ends up 4x slower than when installed from npm (Node 14.17.6).
Yarn doesn't do any kind of compilation itself - that would be done by build tools like webpack.
https://yarnpkg.com/features/zero-installs
It’s also compares this with checking node_modules into git