-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 swc plugin #8613
Comments
We would like to use swc-plugin-inferno instead of the default React JSX transformer. |
Any update on this? |
We'd like to use this SWC plugin because then we can stop using babel and get faster builds but it doesn't seem possible? https://www.npmjs.com/package/@swc/plugin-emotion |
It looks like this is related to the support of .swcrc (seeing #6335). Doesn't it boil down to activating the configuration option swcrc everywhere Parcel uses SWC? Looks like an easy win, considering I only see a few locations where SWC is called in the code:
Am I completely off track? 🤔 |
The place where additional swc transformer plugins should run is https://github.com/parcel-bundler/parcel/blob/v2/packages/transformers/js/core/src/lib.rs |
Or alternatively as a separate transformer, doing something like #9826 |
Thanks for your answers @mischnic. What about supporting the .swcrc by default, tho ? What would it take ? 🤔 My use case is supporting TS decorators. Should I also use a dedicated transformer ? It looks like it could break earlier if SWC parses the code before transformation. |
You should be able to enable them already: |
Interesting (kind of a conf maze though). |
I want to use an swc plugin swc-plugin-transform-vue3-jsx for jsx, but parcel has no way to add swc plugin.
The text was updated successfully, but these errors were encountered: