# @vitejs/plugin-react 6.0.0 - Product: @vitejs/plugin-react (https://whatsnew.fyi/product/vite-plugin-react) - Vendor: Vite - Date: 2026-03-12 - Version: 6.0.0 - Original notes: https://github.com/vitejs/vite-plugin-react/releases/tag/plugin-react%406.0.0 - Permalink: https://whatsnew.fyi/product/vite-plugin-react/releases/6.0.0 What's New is an index, not a publisher: every entry below links to the vendor's own release notes, which are the authoritative source. Entries are labelled where they are hand-curated sample data, pre-releases, or drawn from a secondary source such as a developer blog. Reuse: the summaries, labels and curation here are © What's New. Quote freely with attribution and a link back; wholesale republication of the corpus is not permitted — terms: https://whatsnew.fyi/terms. The vendors' own release notes remain their publishers'. --- ###### Remove Babel Related Features ([#1123](https://github.com/vitejs/vite-plugin-react/pull/1123)) Vite 8+ can handle React Refresh Transform by Oxc and doesn't need Babel for it. With that, there are no transform applied that requires Babel. To reduce the installation size of this plugin, babel is no longer a dependency of this plugin and the related features are removed. If you are using Babel, you can use `@rolldown/plugin-babel` together with this plugin: ```diff import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' +import babel from '@rolldown/plugin-babel' export default defineConfig({ plugins: [ - react({ - babel: { - plugins: ['@babel/plugin-proposal-throw-expressions'], - }, - }), + react(), + babel({ + plugins: ['@babel/plugin-proposal-throw-expressions'], + }), ] }) ``` For React compiler users, you can use `reactCompilerPreset` for easier setup with preconfigured filter to improve build performance: ```diff import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react' +import react, { reactCompilerPreset } from '@vitejs/plugin-react' +import babel from '@rolldown/plugin-babel' export default defineConfig({ plugins: [ - react({ - babel: { - plugins: ['babel-plugin-react-compiler'], - }, - }), + react(), + babel({ + presets: [reactCompilerPreset()] + }), ] }) ``` ###### Drop Vite 7 and below support ([#1124](https://github.com/vitejs/vite-plugin-react/pull/1124)) Vite 7 and below are no longer supported. If you are using Vite 7, please upgrade to Vite 8.