PnP support for Turbopack #71709
martinjlowm
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
Non-Goals
No response
Background
The documentation on https://nextjs.org/docs/architecture/turbopack states that Yarn PnP is not planned to be supported, however, that could have been an old statement and be a different situation now that a stable dev server landed with the Next.js 15 release.
Proposal
It seems like from 5d3f8e8 that resolution plugins can be injected to override how modules are resolved. This would presumably be the place to drop in a
pnp-rs
-based plugin (https://github.com/yarnpkg/pnp-rs) to account for a zip-based FS-layer.Happy to contribute a plugin for
pnp-rs
, however, I'm not entirely sure what the best option architecture-wise would be to add plugins on-demand and load them only if necessary.Beta Was this translation helpful? Give feedback.
All reactions