Skip to content

Bump @vitejs/plugin-react from 5.2.0 to 6.0.4 - #9

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitejs/plugin-react-6.0.4
Open

Bump @vitejs/plugin-react from 5.2.0 to 6.0.4#9
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitejs/plugin-react-6.0.4

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jul 25, 2026

Copy link
Copy Markdown

Bumps @vitejs/plugin-react from 5.2.0 to 6.0.4.

Release notes

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

plugin-react@6.0.4

Fixed $RefreshSig$ is not defined error when running vite dev with NODE_ENV=production

When running vite dev with NODE_ENV=production, the app errored with $RefreshSig$ is not defined. This error is now fixed.

plugin-react@6.0.3

No release notes provided.

plugin-react@6.0.2

Allow all options in reactCompilerPreset (#1189)

This is a type only change. Only compilationMode and target options were available for reactCompilerPreset.

plugin-react@6.0.1

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

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

plugin-react@6.0.0

Remove Babel Related Features (#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:

 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'
</tr></table> 

... (truncated)

Changelog

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

6.0.4 (2026-07-22)

Fixed $RefreshSig$ is not defined error when running vite dev with NODE_ENV=production

When running vite dev with NODE_ENV=production, the app errored with $RefreshSig$ is not defined. This error is now fixed.

6.0.3 (2026-06-23)

6.0.2 (2026-05-14)

Allow all options in reactCompilerPreset (#1189)

This is a type only change. Only compilationMode and target options were available for reactCompilerPreset.

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)

Remove Babel Related Features (#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:

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



}),

]
})

... (truncated)

Commits
  • f4b5498 release: plugin-react@6.0.4
  • 7a40659 fix(react): $RefreshSig$ is not defined with NODE_ENV=production vite dev ...
  • 98b32d4 fix(deps): update react 19.2.8 (#1298)
  • 8ae5449 fix: babel-plugin-react-compiler cannot be imported when used in a framework ...
  • f09ea01 fix(deps): update all non-major dependencies (#1282)
  • 640fd35 release: plugin-react@6.0.3
  • 889efb0 fix(deps): update all non-major dependencies (#1249)
  • 6c57dd4 fix(plugin-react): use '/' base in bundledDev preamble to fix non-root base p...
  • 3cc33a7 fix(deps): update react-related dependencies (#1245)
  • c0f7c7f docs: mention the Biome rule in the "Consistent components exports" section (...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) from 5.2.0 to 6.0.4.
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.0.4/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-version: 6.0.4
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Jul 25, 2026
@diffy-bot

diffy-bot Bot commented Jul 25, 2026

Copy link
Copy Markdown

TL;DR

Bumped @vitejs/plugin-react from ^5.2.0 to ^6.0.4 in apps/web/package.json and updated pnpm-lock.yaml to reflect the new plugin version and its dependency tree (removed several old babel/react-refresh entries, updated pluginutils, added new peer deps).

Files changed

  • apps/web/package.json
  • pnpm-lock.yaml

Summary of changes

  • apps/web/package.json

    • Dependency updated:
      • "@vitejs/plugin-react": ^5.2.0 -> ^6.0.4
  • pnpm-lock.yaml (multiple sections)

    • Updated specifier and resolution for '@vitejs/plugin-react' to 6.0.4 (integrity and version entry changed).
    • Removed several entries related to older Babel helpers and React refresh packages:
      • '@babel/helper-plugin-utils@7.29.7' (resolution removed)
      • '@babel/plugin-transform-react-jsx-self@7.29.7'
      • '@babel/plugin-transform-react-jsx-source@7.29.7'
      • '@types/*' babel type packages (several removed)
      • 'react-refresh@0.18.0' entry removed
      • other snapshot entries referencing the removed packages were dropped
    • Updated '@rolldown/pluginutils' from 1.0.0-rc.3 -> 1.0.1
    • The new '@vitejs/plugin-react@6.0.4' entry:
      • New integrity checksum
      • Peer dependencies changed:
        • Previously: wide vite range (e.g. ^4.2.0 || ... || ^8.0.0)
        • Now includes '@rolldown/plugin-babel' and 'babel-plugin-react-compiler' (marked optional via peerDependenciesMeta) and requires vite: ^8.0.0
      • Removed direct dependencies on some Babel plugins and react-refresh (they no longer appear in the plugin's package snapshot)
    • Various snapshot updates to match the new dependency graph

Notable implications

  • Vite version compatibility:
    • New plugin peer dependency requires vite ^8.0.0. If your project uses an older Vite, you may need to upgrade Vite to 8.x to avoid peer dependency warnings or runtime issues.
  • Optional peer deps:
    • The plugin now lists '@rolldown/plugin-babel' and 'babel-plugin-react-compiler' as peer deps (optional). If your build relies on behavior from those, you may need to add them explicitly.
  • React fast refresh / HMR:
    • The lockfile no longer contains react-refresh as a direct dependency of the plugin snapshot. Confirm that HMR/fast refresh behavior is preserved (the plugin may have changed internals or removed the explicit dependency).
  • Removed Babel-related snapshots:
    • Several Babel helper/type entries were removed from the lockfile; this may reflect upstream restructuring. Verify build/transpile behavior and tests to ensure no regressions.
  • Lockfile changes:
    • Many integrity/resolution lines and snapshots changed — commit the updated lockfile and run a clean install to ensure consistent local environments.

Suggestions

  • Run:
    • pnpm install (to apply the lockfile changes)
    • Full local build and dev server (verify HMR/fast-refresh)
    • Run test suite and CI builds
  • If you encounter peer dependency warnings/errors:
    • Upgrade vite to ^8.0.0 if not already on 8.x
    • Consider adding '@rolldown/plugin-babel' or 'babel-plugin-react-compiler' only if required by your build; they are marked optional by the plugin but may be needed in specific setups
  • Review changelog for @vitejs/plugin-react v6.x for migration notes that might affect JSX transforms, dev behavior, or build outputs
  • If you rely on react-refresh-specific behavior, verify whether that functionality is still provided or needs explicit dependency or configuration

You can generate a new summary by commenting @diffy-bot.

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​vitejs/​plugin-react@​6.0.49910010092100

View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants