logoalt Hacker News

The Rust React Compiler is now native in Vite

90 pointsby acustitoday at 5:49 PM17 commentsview on HN

Comments

vmsptoday at 10:08 PM

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.

adzmtoday at 7:09 PM

No more babel in my compilation pipeline, yay!

syspectoday at 7:09 PM

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

show 1 reply
Onavotoday at 9:25 PM

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.

prettycooltoday at 7:00 PM

[dead]

glouwbugtoday at 6:59 PM

They should rewrite it in rust