logoalt Hacker News

The Rust React Compiler is now native in Vite

127 pointsby acustiyesterday at 5:49 PM25 commentsview on HN

Comments

adzmyesterday at 7:09 PM

No more babel in my compilation pipeline, yay!

show 3 replies
BretonForearmtoday at 12:52 AM

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

show 1 reply
vmspyesterday 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.

show 1 reply
syspecyesterday at 7:09 PM

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

show 1 reply
Onavoyesterday 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.

show 3 replies
prettycoolyesterday at 7:00 PM

[dead]

glouwbugyesterday at 6:59 PM

[flagged]

show 1 reply