Skip to content

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

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

chore(deps-dev): Bump @vitejs/plugin-react from 4.7.0 to 6.0.2#14
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/vitejs/plugin-react-6.0.2

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

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

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 @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 22, 2026

Labels

The following labels could not be found: dependencies. Please create it before Dependabot can add it to a pull request.

Please fix the above issues or remove invalid values from dependabot.yml.

@dependabot dependabot Bot force-pushed the dependabot/npm_and_yarn/vitejs/plugin-react-6.0.2 branch 2 times, most recently from a499bb6 to 57859ed Compare May 22, 2026 13:19
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 force-pushed the dependabot/npm_and_yarn/vitejs/plugin-react-6.0.2 branch from 57859ed to 4861ef1 Compare May 22, 2026 13:25
@andresdefi
Copy link
Copy Markdown
Owner

Will be picked up by the React 19 migration PR.

@andresdefi andresdefi closed this May 22, 2026
@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github May 22, 2026

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/vitejs/plugin-react-6.0.2 branch May 22, 2026 13:27
andresdefi added a commit that referenced this pull request May 22, 2026
Bumps react + react-dom to 19.2.6 (was 18.3.1), @types/react to 19.2.x,
@types/react-dom to 19.2.x, and @vitejs/plugin-react to 6.0.2 (was 4.7;
v6 dropped React 18 support so this bump is gated on React 19).

Replaces Dependabot PR #12 (which left react-dom at 18 — version-major
mismatch with react@19 — Dependabot grouping bug) and PR #14
(blocked on React 19).

Verified peer-dep coverage before migrating:
  - @tiptap/react 3.23.4 declares react ^17 || ^18 || ^19
  - zustand 4.5.7 declares react >=16.8 (open-ended)
  - modern-screenshot has no React peer dep (DOM utility)
  - @vitejs/plugin-react v4 had no React peer dep at all

Three small code changes the React 19 type changes required:

- ColorPickerPopover triggerRef widened from `RefObject<HTMLElement>`
  to `RefObject<HTMLElement | null>`. React 19 made `RefObject<T>`
  invariant in T, so the callers (ColorPicker, RichTextEditor) that
  pass `useRef<HTMLButtonElement>(null)` no longer narrow.
- src/client/components/Sidebar/Elements/RootView.tsx adds
  `import type { JSX } from 'react'`. The global JSX namespace was
  removed in React 19's types.
- Same JSX import added to Sidebar/Elements/utils.ts.

Verified locally:
  - pnpm typecheck clean across all 3 packages
  - pnpm test 534/534 passing
  - pnpm build succeeds (web-preview bundle ~10% larger from React 19's
    runtime baseline, expected)
  - pnpm audit clean
  - Manual browser smoke test: text editing, color picker (exercises
    triggerRef fix), Elements tab (exercises JSX import fix), drag
    interactions — no warnings or errors in devtools.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
andresdefi added a commit that referenced this pull request May 22, 2026
Bumps react + react-dom to 19.2.6 (was 18.3.1), @types/react to 19.2.x,
@types/react-dom to 19.2.x, and @vitejs/plugin-react to 6.0.2 (was 4.7;
v6 dropped React 18 support so this bump is gated on React 19).

Replaces Dependabot PR #12 (which left react-dom at 18 — version-major
mismatch with react@19 — Dependabot grouping bug) and PR #14
(blocked on React 19).

Verified peer-dep coverage before migrating:
  - @tiptap/react 3.23.4 declares react ^17 || ^18 || ^19
  - zustand 4.5.7 declares react >=16.8 (open-ended)
  - modern-screenshot has no React peer dep (DOM utility)
  - @vitejs/plugin-react v4 had no React peer dep at all

Three small code changes the React 19 type changes required:

- ColorPickerPopover triggerRef widened from `RefObject<HTMLElement>`
  to `RefObject<HTMLElement | null>`. React 19 made `RefObject<T>`
  invariant in T, so the callers (ColorPicker, RichTextEditor) that
  pass `useRef<HTMLButtonElement>(null)` no longer narrow.
- src/client/components/Sidebar/Elements/RootView.tsx adds
  `import type { JSX } from 'react'`. The global JSX namespace was
  removed in React 19's types.
- Same JSX import added to Sidebar/Elements/utils.ts.

Verified locally:
  - pnpm typecheck clean across all 3 packages
  - pnpm test 534/534 passing
  - pnpm build succeeds (web-preview bundle ~10% larger from React 19's
    runtime baseline, expected)
  - pnpm audit clean
  - Manual browser smoke test: text editing, color picker (exercises
    triggerRef fix), Elements tab (exercises JSX import fix), drag
    interactions — no warnings or errors in devtools.

Co-authored-by: andresdefi <andresdefi@users.noreply.github.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant