Skip to content
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

Support Yarn Plug and Play Zero Install #3124

Open
gtamas opened this issue May 31, 2023 · 4 comments
Open

Support Yarn Plug and Play Zero Install #3124

gtamas opened this issue May 31, 2023 · 4 comments
Labels
enhancement New feature or request

Comments

@gtamas
Copy link

gtamas commented May 31, 2023

What is the problem this feature would solve?

Apps using Yarn's zero install cannot be started with bun, because it cannot find modules.

bun run ./build/src/main.js

Cannot find module "..." from...`

What is the feature you are proposing to solve the problem?

Apps using Yarn Plug n Play zero install would work with bun

What alternatives have you considered?

None

@gtamas gtamas added the enhancement New feature or request label May 31, 2023
@jwoo0122
Copy link

jwoo0122 commented Sep 12, 2023

yarn's .pnp.cjs and .pnp.loader.mjs use node's internal behavior, which is not implemented yet in bun. Looks like we should make a plugin for bun or suggest to yarn to support bun environment...

Related: #3852, #3546

@seivan
Copy link

seivan commented Sep 16, 2023

Second this. It's hard to go back after plug and play and having the entire system being reproducible.
Cloning a project or switching branches doesn't need to fetch any dependencies.
Keep in mind there are two things that helps with that, compressing them and allowing for a arch matrix for native modules.

@arcanis
Copy link

arcanis commented Sep 26, 2023

Note that PnP actually has a formal spec, not tied to a specific implementation (ie you don't actually need to evaluate the .pnp.cjs file). For instance, I implemented it in Rust here: https://github.com/arcanis/pnp-rust. It's relatively easy!

@rtritto
Copy link

rtritto commented Aug 30, 2024

Any update?

Related #13632

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants