-
Notifications
You must be signed in to change notification settings - Fork 5.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
Support new JSX transforms #8440
Comments
It seems support has been added to SWC, just wondering - what exactly is left that is blocking support for this? |
A fair amount, as we need to integrate it and test it. It landed too close to 1.8 for us to do the remaining work, so it will likely be in 1.9. |
I have kept kicking this down the road, but I have started this now. A couple notes so far...
|
If required, I'm open to accepting a trait to override logic for determining import sources. |
Thank you. At the moment, swc is "behaving" like I expect. Considering the behaviour is consistent between swc and tsc, it feels like it would be better to have the Deno module graph do the "magical" resolution. |
Need swc-project/swc#1933 resolved, but there are other challenges beyond that (mostly how to deal with the types when using the transforms). |
swc-project/swc#1933 has been fixed now... will get back to this soon-ish |
Not going to be able to address this for 1.14. There are still some barriers in how we deal with resolving auto-imported specifiers. |
React 17 introduced new JSX transforms and they are available in TypeScript 4.1. There are two new options for
"jsx"
in TypeScript:"react-jsx"
"react-jsxdev"
Currently with check these should be supported without any further changes, but are unsupported in
--no-check
anddeno bundle
.We need support from swc before integrating. Ref: swc-project/swc#1103
cc/ @kdy1
The text was updated successfully, but these errors were encountered: