Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
matharmin
on Dec 12, 2021
|
parent
|
context
|
favorite
| on:
We check our node_modules folder into source contr...
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
on Dec 12, 2021
[–]
I’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”.
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Yarn doesn't do any kind of compilation itself - that would be done by build tools like webpack.