-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
Cannot use SWC plugins in Webpack loader #48
Comments
cc @kwonoj |
I think we need an example input file can reproduce. Or is it occurs on any source as an input? |
I made a demo here: https://github.com/aegooby/swc-webpack-with-plugins |
I have a repo with storybook that builds fine, but doesn't work when storybook tries to run. Maybe connected with this as storybook uses webpack as it's bundler.
here's the repo, very minimal - one component https://github.com/alekangelov/emotion-swc-storybook-bug
|
this issue is a separate one, upstream issue filed at swc-project/swc#5406 |
I saw you already deduced that I've got apple silicon. If there's anything I can do, I will 👍 meanwhile will try to repro on: Windows 11 and Ubuntu (WSL and Vanilla) |
This is old issue and we've updated lot of internals. Please try with the latest, and report new if it still occurs. |
When using
swc-loader
in Webpack with the following.swcrc
,I get the following error:
If I remove the plugin from the
.swcrc
file, the whole process runs fine. As soon as I add in a plugin (I have tried Relay and Jest), this issue occurs.The text was updated successfully, but these errors were encountered: