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 for Yarn 2 PnP #109

Open
jakubzitny opened this issue May 20, 2021 · 1 comment
Open

Support for Yarn 2 PnP #109

jakubzitny opened this issue May 20, 2021 · 1 comment

Comments

@jakubzitny
Copy link

In Yarn 2 PnP mode, there is no node_modules folder. Everything is in .yarn cache and kept loaded in memory. Would it be possible to add support for this in webpack-node-externals or have you already thought about it?

@tarikjn
Copy link

tarikjn commented Sep 25, 2021

Bumping this up. I expected webpack-node-externals to just work with PnP and it took me a while to find that this was my issue.

I found two packages that implement this:

At first glance it seems that this could be handled by another package than webpack-node-externals, but ideally webpack-node-externals, or a higher-level package should handle package manager context automatically, the rationales are:

  • this package is called webpack-node-externals, not webpack-npm-externals
  • standardized options
  • most importantly: to avoid having the package manager setup leak into webpack configs

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

2 participants