Stu Mason
Stu Mason

Activity

Pull Request Merged

PR #56 merged: chore(deps): bump @vitejs/plugin-react from 5.1.4 to 6.0.1

Bumps @vitejs/plugin-react from 5.1.4 to 6.0.1.

Release notes

Sourced from @​vitejs/plugin-react's releases.

[email protected]

Expand @rolldown/plugin-babel peer dep range (#1146)

Expanded @rolldown/plugin-babel peer dep range to include ^0.2.0.

[email protected]

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:

 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:

 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()]
    

</tr></table>

... (truncated)

Changelog

Sourced from @​vitejs/plugin-react's changelog.

6.0.1 (2026-03-13)

Expand @rolldown/plugin-babel peer dep range (#1146)

Expanded @rolldown/plugin-babel peer dep range to include ^0.2.0.

6.0.0 (2026-03-12)

6.0.0-beta.0 (2026-03-03)

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:

 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:

 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'],
    
  •  },
    

</tr></table>

... (truncated)

Commits

+52
additions
-106
deletions
2
files changed