And now @vitejs/plugin-react got the experimental native React Compiler support π! github.com/vitejs/vite-... At work (rather big monorepo): 32.8s -> 5.3s π
github.comRelease plugin-react@6.1.0 Β· vitejs/vite-plugin-reactAdd experimental native React Compiler support (#1419)
Add experimental native React Compiler support.
You can use it by installing oxc-transform-react and enabling it via the compiler option:
npm ...
The @react.dev compiler landed in Oxc (thanks @boshen.github.io) π It is 2x faster than the initial Rust port while being 2x smaller and comes with granular rule support for Oxlint, improved diagnostics messages, and an *optional* transform for @vite.dev (integration with the React plugin pending)
1 repost10 likes