Repository navigation
PnP support for Turbopack #71709
Replies: 2 comments
|
Adding a strong +1 from the electronic financial services sector, along with some data on demand. Why Yarn PnP matters for usElectronic financial institutions operate under mandatory network separation regulations,
Demand is larger than the original thumbs-up count suggests
Many teams in regulated industries also can't easily participate in public GitHub discussions from their work environment, The implementation cost looks contained
Ask
Happy to provide more details or help test. |
|
Just to add another data point here, we were looking to start using Next in a Yarn PnP monorepo, but we might now consider a different metaframework as a result of the lack of support. |
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.All reactions