-
-
Notifications
You must be signed in to change notification settings - Fork 601
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Yarn PnP workspace #2236
Comments
This feature is not yet supported |
@bvanjoi Thank you for your prompt response. Could you please let me know if this feature is planned for development and if so, can you provide an estimated timeline for release? |
We have no plans to support it for now |
Thats bad news, I don't know how big the PnP community is, but since webpack v5 supports yarn PnP by default which means if you guys plan to support this it would be awesome. |
Of course, PnP is a really great feature and part of the reason we don't support it at the moment is a lack of manpower, I'll be trying this out over the weekend, and if you're interested, feel free to mention PR, and we can make it happen together! |
Lately I did some research and found this pnp-rust implementation of yarn PnP in rust written by yarn maintainer, maybe this repo could give some insights? Looks like this package still in WIP. |
Module Resolution is tricky - but this is a big one I think would be good to ensure we include its ecosystem appropriately |
It's still possible to use rspack with yarn 3 by using the node modules plugin/ https://yarnpkg.com/getting-started/migration#if-required-enable-the-node-modules-plugin |
@Boshen we need to consider support yarn pnp now |
How many feature requests have we received? It's been almost a year and this is the only feature request I see so far. How much effort does it go into supporting yarn-pnp? This feature seems to have a really low benefit–cost ratio. |
I don't know how many users are using yarn pnp, but both yarn、pnpm、webpack、nx support pnp, see https://pnpm.io/blog/2020/10/17/node-modules-configuration-options-with-pnpm#plugnplay-the-strictest-configuration , so don't think it's a outdated feature |
I'll consider it if we receive more feature requests. oxc-project/oxc-resolver#53 |
Many people might see a feature req. already exists and might consider it duplicative to request it again. |
Definitely not a outdated feature, in my opinion Yarn PnP is still a bit underrated mainly because of some compatibility issues during its beginnings. Strictly isolating dependencies (described in link shared by @hardfist above) is very powerful safeguard against weird bugs caused by importing transitive dependencies or using multiple conflicting versions etc., especially in larger codebase. Of course you can check (some of) it with linter, but PnP is preventing that potentially-errorneous import on the lowest level possible. Also having individual dependencies stored as a zip archive instead humongous |
yeah, i agree it's not a outdated feature, we would love to support it in rspack if people help to contribute to support it |
@hardfist I would love to help if possible, but I'm not sure if I have the skills required... |
for performance reason, it would be better implemented in rust side |
There is a Rust implementation of the PnP module resolution algorithm here https://github.com/arcanis/pnp-rust |
it seems when resolve hook is landed, yarn pnp workspace could be supported by resolve hook, cc @ahabhgk |
yarn pnp support is on the roadmap, we will implement it in near future |
@hardfist that's great news! Is this roadmap published somewhere on GitHub? |
Hi all, any updates on this feature? (@hardfist) :) |
still working on it |
System Info
System:
OS: macOS 12.6.4
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 2.54 GB / 16.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.17.4 - /private/var/folders/wv/hb8dy4gs4xq51jx7k9bbtthm0000gn/T/xfs-ce0be687/node
Yarn: 3.4.1 - /private/var/folders/wv/hb8dy4gs4xq51jx7k9bbtthm0000gn/T/xfs-ce0be687/yarn
npm: 6.14.14 - ~/.nvm/versions/node/v14.17.4/bin/npm
Details
is yarn workspace pnp mode supported already or its not support currently. I got lots of errors like this.
Reproduce link
No response
Reproduce Steps
The text was updated successfully, but these errors were encountered: