-
-
Notifications
You must be signed in to change notification settings - Fork 33
Support multiple SWC entries #177
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
Comments
It does not currently support that, no. Could you provide me an example of what you want to achieve with multiple configs, maybe simply your swc config? Then I'll have a better understanding of the use case. I'll mark this as a feature request. |
Similar to swc-project/swc#1877 |
The original use case from that issue, as well as the tsx/jsx use case is not relevant in the context of In other words, there's no point in having something like This FAQ entry from the README explains this in more details. It's about Babel, but the same principles apply for swc. Still, I'll see if I can support this multi-entry SWC feature, but you should know that in your case you won't actually need it, as you can just leave out the TypeScript part of your swc config. |
Thank you @wessberg. Does this still apply now with v3? |
In v3, this is now relevant, as I've looked into this issue and added support for multiple swc configs. However, the original issue you linked to isn't relevant here, as you can just use I imagine there are tons of reasons why you may want to use multiple swc configs, however, and so I'm happy to support it. It will be available in the next release, which I'll release shortly. |
…e importHelpers: true to avoid a potential tslib error when babel or swc is used for all types of syntax
Question
Hey @wessberg, does the swc integration in this plugin support an array of options like this?
swc-project/swc#1877
https://swc.rs/docs/configuration/compilation#multiple-entries
Cannot seem to get it to work
Thank you
The text was updated successfully, but these errors were encountered: