11 ms·
The pnp.js file has a list of modules, not the modules themselves. The modules are still read from zip files at runtime. Yarn doesn't do any kind of compilatio
by matharmin 5y ago
The pnp.js file has a list of modules, not the modules themselves. The modules are still read from zip files at runtime.
Yarn doesn't do any kind of compilation itself - that would be done by build tools like webpack.
- charrondev 5y agoI’d be curious how “read file from a zip that I know the exact path to” performs compared to “recursively walk the node_modules directory and dynamically lookup the location of the file”.