plugin-react-swc, React Compiler Vite 8 Support
#1240
-
|
I have a project using My understanding is that Rolldown doesn't have React Compiler support and will thus pull in Babel, which I would like to avoid. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
@tyteen4a03 |
Beta Was this translation helpful? Give feedback.
@KTrain5169 the setup for React Compiler with Vite 8 + react-plugin 6 is here.
oxc-plugin-react-compileris not official at all, it's a one person project (which is not part of Vite or OXC team) and done with AI. I just discovered it. There is a PR for an official Rust port from the React team.@tyteen4a03 to answer your question, there is no recommended way currently to use the React compiler without Babel.
In any case, what we recommand is move to the react-plugin anyway. When a rust port will be available, it will be better supported with oxc where we (the Vite team) have the controlled on the whole toolchain. If you have anything that you need from SWC and that you don't have on OXC, …