You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enhanced-resolve is incorrectly escaping from the pnpapi context.
Context
Encountered this via webpack initially using Yarn 2's pnpapi.
With Webpack:
Repro project: https://github.com/noahnu/yarn-repro-linking-non-pnp, after cloning the project, cd yarn2-pnp-project && yarn build then search for yarn1-nm-project/node_modules/react-dom/index.js in the dist/bundle.js file. It's from node_modules.
And without webpack, purely using enhanced-resolve:
enhanced-resolve is incorrectly escaping from the pnpapi context.
Context
Encountered this via webpack initially using Yarn 2's pnpapi.
With Webpack:
Repro project: https://github.com/noahnu/yarn-repro-linking-non-pnp, after cloning the project,
cd yarn2-pnp-project && yarn build
then search foryarn1-nm-project/node_modules/react-dom/index.js
in thedist/bundle.js
file. It's from node_modules.And without webpack, purely using enhanced-resolve:
Repro:
Clone: https://github.com/noahnu/yarn-repro-linking-non-pnp/tree/pure_enhance
and run the bash script:
./run-repro.sh
.Expectation
I expect the assertion to pass, as both should be going through pnp.
The text was updated successfully, but these errors were encountered: