-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Test fails using yarn@berry and pnp-webpack-plugin #10053
Comments
there was a workaround for webpack@4
but webpack@5 supports yarn pnp by default, so it's not working anymore |
@arcanis any ideas? |
Can't check right now, but I suspect babel-jest is transpiling the .pnp.js file, which it shouldn't do for the reason described in the error message. I'd suggest to try disabling transforms on this file. |
Interesting! Our current default |
That would be ideal! In fact, if you can ignore |
@irudoy can you confirm adding |
Adding |
Curious - afaik Webpack 5 also simply requires |
I'm sorry for the misinformation. Definitely, it's working just fine with webpack 5! It was late at night, and I missed something. Big thanks for finding a solution 😸 @SimenB this should be added to the default value of |
Yeah, let's do it. Wanna send a PR? |
done |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Testing webpack build with
babel-jest
fails using yarn@berry and pnp-webpack-plugin.test.js
output
To Reproduce
https://github.com/irudoy/yarn-berry-webpack-jest-repro
Expected behavior
The test is successfully passed.
Link to repl or repo (highly encouraged)
https://github.com/irudoy/yarn-berry-webpack-jest-repro
envinfo
The text was updated successfully, but these errors were encountered: