-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
- I'd be willing to implement this feature
- This feature can already be implemented through a plugin
Describe the user story
I saw that the yarn pnp.js
file extends some nodejs native functionality like require
, path
and fs
functions
To prevent performance degradation we should make benchmark and stress tests that measure the runtime overhead, for example creating a bundle with webpack of a big project with at least 50 packages
Other performance degradations could be in glob searches
I am also scared that some of these functions reimplementations have time complexity that grows with the workspace packages you have, some of us have workspaces with 200 packages
Describe the solution you'd like
Implement a benchmark to measure the runtime overhead
Describe the drawbacks of your solution
Describe alternatives you've considered
Additional context
It is still not very clear to me why yarn
reimplements fs
, it would be cool to read more about it