The Rust React Compiler is now native in Vite

127 points14 comments12 hours ago
adzm

No more babel in my compilation pipeline, yay!

show comments
BretonForearm

What's a react compiler? Not JS or TS?

show comments
vmsp

OXC Transformers are amazingly faster than Babel. I'm building a framework (https://github.com/vmsp/flypath) for web, iOS and Android native development that's fully backed by OXC and Vite. Instead of transforming styles using Babel like StyleX, I just use OXC. Instead of Metro (React Native's bundler), which also uses Babel, it's just Vite. It's still very early but it's plenty, plenty fast.

show comments
syspec

Does this work with reacts fancy new compiler that is meant to optimize away various hooks?

show comments
Onavo

Why does the Nextjs version of React compiler require a babel plugin when the vite version doesn't need it? Next.js is on SWC, not sure why they need a babel plugin.

show comments