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

.pnp.js file in home directory turn on pnp mode in project #2647

Closed
Reon90 opened this issue Oct 31, 2022 · 3 comments
Closed

.pnp.js file in home directory turn on pnp mode in project #2647

Reon90 opened this issue Oct 31, 2022 · 3 comments

Comments

@Reon90
Copy link

Reon90 commented Oct 31, 2022

~ .pnp.js project-folder

@evanw
Copy link
Owner

evanw commented Oct 31, 2022

This is how Yarn is supposed to work. Here's a comment from someone who works on Yarn: #2495 (comment)

@evanw
Copy link
Owner

evanw commented Nov 4, 2022

Closing as by design.

@evanw evanw closed this as completed Nov 4, 2022
@sverrejoh
Copy link

Right now esbuild breaks if the user by mistake has a pnp.cjs/pnp.js file in the home directory, which can happen easily by doing yarn add something in the wrong terminal window.

I wonder if esbuild could stop looking for pnp config files after finding a yarn.lock file, or if there could be an esbuild config flag to explicitly disable pnp (for projects not compatible with pnp).

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

No branches or pull requests

3 participants