You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
how can I New React Compiler setting Vite project, now?
I try to rewrite "vite.config.ts" file (plus plugins section) .....
but the "babel" letter makes errors
Reacted by Benjamin Staneck, Daniele B, Marius Butuc, Chris Golding, Leonardo Venturini, Gokuldas K M, hikki, ichsan, Eric Barrionuevo, Valery Kharshats and 11 more
For React Compiler though, we plan to continue using JavaScript and explore lightweight native wrappers for things like OXC and SWC plugins.
Reacted by Valery Kharshats, Nipun Kay., Manuel, Eric Barrionuevo, 1zilc, Daniel Miron, Ratchanon Panmas, Leandro Piccilli, Jaakko Sirén, Arnav Sharma and 8 more
Reacted by Manuel, oplaics, Adán García, Ivanilton Silva, Konstantin Barabanov, Peter Mooney, Bryan Primus, marcelmanz, rackriili, Lavrentiy Rubtsov and 13 more
Yeah I will see how we can integrate it in the Vite plugin soon!
Reacted by Guillaume Humbert, Mauro Reis Vieira, Jan Poth, Jonathan Ruffles, Anton Sivashtenko, Andrew Patton, Wouter Henderickx, Manuel, tbdawiso, Santiago Pernigotti and 6 more
@orta The release mentions @vitejs/plugin-react only, not react-swc, unfortunately :/
Regardless, it is a good update. Considering switching to babel in the meantime.
Activity
ArnaudBarre commentedon May 16, 2024
For now the simplest way is to switch back to the Babel plugin. They working a Rust port, I hope this can be builtin in SWC in the future!
eeuneeun commentedon May 27, 2024
how can I New React Compiler setting Vite project, now?
I try to rewrite "vite.config.ts" file (plus plugins section) .....
but the "babel" letter makes errors
alireza-akbarzadeh commentedon May 29, 2024
You should use vite-plugin-react
matej-kaska commentedon Oct 31, 2024
Will be there an option to use react compiler with SWC in the future?
ArnaudBarre commentedon Nov 1, 2024
If the React team lands the Rust port of the compiler, I think SWC will try to integrate it directly. But the rust part didn't get updated since annouced: https://github.com/facebook/react/commits/main/compiler/crates
AaronDewes commentedon Jan 28, 2025
The Rust port has been removed: react/react#32219
ArnaudBarre commentedon Jan 31, 2025
Yeah, they still plan to have some integrations, but it will probably take times too
rakleed commentedon May 23, 2025
See also oxc-project/oxc#10048
[-]React Compiler[/-][+]React Compiler with plugin-swc[/+]Hanaffi commentedon Nov 24, 2025
Any update on this please?
feat: react-compiler
Add files via upload
feat: version 2 (#295)
HM-Suiji commentedon Feb 5, 2026
快一些,我很需要这个功能
Arelav commentedon Feb 9, 2026
它是开源的,如果紧急的话可以自己实现。
And we communicate her in English if you didn't notice
HM-Suiji commentedon Feb 12, 2026
I am so sorry. I will try it.
ianujvarshney commentedon Jun 1, 2026
I was also using
@vitejs/plugin-react-swcand wanted React Compiler support.After the Vite maintainer's clarification:
oxc-plugin-react-compileris unofficial (AI-generated, one-person project)@vitejs/plugin-reactwith BabelI've migrated to
@vitejs/plugin-reactand accepted the Babel trade-off for now. Hoping the official Rust port from PR #36173 lands soon.Has anyone tested the performance difference between SWC and the new OXC-based plugin-react with React Compiler enabled?
pippinmole commentedon Jun 10, 2026
The React Compiler port to Rust has been merged into React - when can we see this in the official Vite react plugin, if at all?
ArnaudBarre commentedon Jun 11, 2026
Yeah I will see how we can integrate it in the Vite plugin soon!
pippinmole commentedon Jun 29, 2026
do you have an ETA? :)
SimenB commentedon Jul 6, 2026
we have
which works fine
AndreFavotto commentedon Jul 6, 2026
+1 for this!
kevinwt95 commentedon Aug 10, 2026
Any updates here?
Is options.jsc.transform.reactCompiler = true a valid option? I can't find any documentation for it.
orta commentedon Aug 24, 2026
v6.1.0 of this project now includes experimental React Compiler support.
AndreFavotto commentedon Aug 24, 2026
@orta The release mentions
@vitejs/plugin-reactonly, not react-swc, unfortunately :/Regardless, it is a good update. Considering switching to babel in the meantime.