Replies: 2 comments
-
Would also love an OSS React 19 compiler SWC plugin! |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, The problem in general was that the compiler has been first implemented in JS, for Babel! So in a way, it is an upstream issue. What has to happen is that the compiler model, or architecture, stabilizes, and then it can be written in other languages and such. Source of my claim: https://github.com/facebook/react/blob/main/compiler/docs/DEVELOPMENT_GUIDE.md#wip-rust-development and other documents on that folder of the react repo |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Why is
babel-plugin-react-compiler
- I thought it would need a SWC plugin.Additional information
Why do I ask - is there some way to use babel plugins without going all the way back to babel in full? OR, does enabling experimental: reactCompiler, also put us in babel mode? It's not super clear what's happening here.
There is a swc plugin for graphql called
@graphql-codegen/client-preset-swc-plugin
which I've never been able to get to work in nextjs, because using SWC plugins is a total nightmare, as is getting babel to work. But if there is some way I can get the babel version of that plugin to work, that'd be swell.Beta Was this translation helpful? Give feedback.
All reactions