-
Notifications
You must be signed in to change notification settings - Fork 26.4k
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
Next 12.2 - Custom SWC plugin causes failures during build #38428
Comments
There's bit rough edges around composing plugin we'd like to improve. For now, try to use
to match with Also, config should be
This also need to be improved over. |
@kwonoj You mentioned those versions and
Could you clarify where I should be checking |
It's statically compiled into swc-project/swc#5149 is filed to track these ergonomics. |
Closing as per #38428 (comment) for now. Given this is an experimental feature, some rough edges are expected as pointed out, but thanks for the feedback! |
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 102.0.5005.115
How are you deploying your application? (if relevant)
next build fails
Describe the Bug
I am trying to test a simple plugin since next 12.2 landed support for experimental SWC plugins written in WASM.
To achieve this, I created a plugin sample here - https://github.com/AdarshKonchady/swc-console-replace-plugin
Compiled that to WASM to use in a sample NextJS app. I've put the compiled WASM binary in that repo as well here
Testing this on a sample NextJS app though results in a build error. My real usecase for this is different from this of course but added the repo above for demonstration purposes.
Would appreciate any help in debugging this further. Thank you !
Expected Behavior
SWC plugin should work as expected
Link to reproduction
https://github.com/AdarshKonchady/swc-console-replace-plugin and https://github.com/AdarshKonchady/next-app-demo
To Reproduce
The text was updated successfully, but these errors were encountered: