@vitejs/plugin-react 6.1.0

6.1.0
Added 1
  • Experimental native React Compiler support via the compiler option

From @vitejs/plugin-react

Add 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 install -D oxc-transform-react
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

export default defineConfig({
  plugins: [
     react({ compiler: true })
  ]
})
View original

Upgraded? How did it go?

Discussion