Skip to content

chore(deps-dev): bump @vitejs/plugin-react from 4.7.0 to 6.0.2#178

Merged
beenuar merged 6 commits into
mainfrom
dependabot/npm_and_yarn/vitejs/plugin-react-6.0.2
May 20, 2026
Merged

chore(deps-dev): bump @vitejs/plugin-react from 4.7.0 to 6.0.2#178
beenuar merged 6 commits into
mainfrom
dependabot/npm_and_yarn/vitejs/plugin-react-6.0.2

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github May 18, 2026

Copy link
Copy Markdown
Contributor

Bumps @vitejs/plugin-react from 4.7.0 to 6.0.2.

Release notes

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

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'
-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)

Changelog

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

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



}),

]
})

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

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​vitejs/plugin-react since your current version.


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 4.7.0 to 6.0.2.
- [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.2/packages/plugin-react)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react"
  dependency-version: 6.0.2
  dependency-type: direct:development
  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 May 18, 2026
@dependabot dependabot Bot requested a review from beenuar as a code owner May 18, 2026 09:15
prince30121 and others added 3 commits May 19, 2026 11:04
Three pre-existing failures on ``main`` were blocking every open
Dependabot PR (#167#189). None of them were caused by the dependency
bumps themselves — they were latent bugs that only surfaced once
unpinned tooling drifted forward.

* ``services/ingest`` no longer fails ``go build`` with
  ``./main.go:38:5: undefined: envmode``. The ``envmode.IsDevRuntime``
  call introduced in PR #127 forgot its import line.
* ``scripts/run_evals.py`` no longer raises
  ``NameError: name '_SUITE_NAMES' is not defined`` at startup. The
  ``--suite`` argparse choice tuple referenced a constant that was
  never authored; reconstructed it from the canonical
  ``summary["suites"]`` key order in ``main()``.
* ``.github/workflows/ci.yml`` pins ruff and mypy to the version
  ranges declared in each service's ``pyproject.toml``
  (``ruff = "^0.4.4"``, ``mypy = "^1.10.0"``). The previous ``pip
  install ruff mypy`` was unpinned, so each upstream release silently
  re-baselined the lint gate (ruff 0.15.x adds UP037 enforcement, etc.).
  Dependabot bumps to the pyproject constraints (#186, #187) will need
  to widen this pin in the same diff.

The remaining ``Web — Vitest smoke tests`` failure (``SOCInsightsView``
SWR cache leakage between test cases) is documented as a separate
follow-up — it pre-dates this PR and affects every Dependabot bump
equally, so it doesn't block the dependency sweep.
``apps/web/src/test/setup.ts`` already runs @testing-library's
``cleanup()`` in ``afterEach``, but SWR keeps a *module-scoped* cache
that survives DOM teardown. The SOCInsightsView smoke tests trip
over this: the first test mocks the fetcher with
``new Promise(() => {})`` to hold the loading state open, which pins
that unresolved promise to the SWR cache key. The second test's
``mockResolvedValue`` is then silently ignored — SWR returns the
cached pending promise — so ``screen.getByText('MTTA')`` fails with
``TestingLibraryElementError: Unable to find an element with the text``.

Call ``mutate(() => true, undefined, { revalidate: false })`` in the
same ``afterEach`` to drop every cached key. This is the lightest
fix; wrapping every test in ``<SWRConfig provider={() => new Map()}>``
would be more isolated but needs touching every test file.

Closes the last of the four ``main`` CI failures that block the
open Dependabot sweep.
@beenuar

beenuar commented May 20, 2026

Copy link
Copy Markdown
Owner

Deferred for owner migration session. @vitejs/plugin-react 4 → 6 spans two major versions and touches the dev server / HMR path that the dashboard Vitest smoke tests in PR #192 depend on. Recommend handling alongside #179 (vitest 2 → 4) in a single Vite/Vitest migration PR, since they tend to break together.

beenuar and others added 2 commits May 19, 2026 22:43
@beenuar beenuar merged commit f15e47e into main May 20, 2026
22 of 23 checks passed
@beenuar beenuar deleted the dependabot/npm_and_yarn/vitejs/plugin-react-6.0.2 branch May 20, 2026 05:47
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.

2 participants