Unfortunately, reading files from .zip can be considerably slower than the filesystem.
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).
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.