Skip to content

chore: update dependency @vitejs/plugin-react to v6 - #243

Closed
renovate-nownabe-ghac[bot] wants to merge 1 commit into
mainfrom
renovate/vitejs-plugin-react-6.x
Closed

renovate-nownabe-ghac[bot] wants to merge 1 commit into
mainfrom
renovate/vitejs-plugin-react-6.x

Conversation

@renovate-nownabe-ghac

@renovate-nownabe-ghac renovate-nownabe-ghac Bot commented Jul 20, 2026 •

Copy link
Copy Markdown

This PR contains the following updates:

Package Type Update Change OpenSSF
@vitejs/plugin-react (source) overrides major ^4.3.4 → ^6.0.0 OpenSSF Scorecard
@vitejs/plugin-react (source) devDependencies major ^4.3.4 → ^6.0.0 OpenSSF Scorecard

Release Notes

vitejs/vite-plugin-react (@​vitejs/plugin-react)

v6.1.1

Compare Source

Add compiler.logDiagnostics option

Recoverable React Compiler diagnostics are no longer logged by default. Set compiler.logDiagnostics to true to log them through Vite. Fatal diagnostics are always logged and fail the transform.

Respect environment sourcemap option for React Compiler transform when builder.sharedPlugins is enabled (#​1439)

The React Compiler transform was using the top-level sourcemap option instead of the environment sourcemap option. This caused a problem when the experimental builder.sharedPlugins was enabled.

v6.1.0

Compare Source

Add experimental native React Compiler support (#​1419)

Add experimental native React Compiler support.

You can use it by installing oxc-transform-react and enabling it via the compiler option:

npm install -D oxc-transform-react
import { defineConfig } from 'vite'
import react from '@​vitejs/plugin-react'

export default defineConfig({
  plugins: [
     react({ compiler: true })
  ]
})

v6.0.5

Compare Source

Fixed the react compiler preset filter to be linear (#​1353)

The improved filter in v6.0.3 was non-linear and caused a performance regression (#​1349). The filter was changed to be linear to avoid that.

v6.0.4

Compare Source

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.

v6.0.3

Compare Source

Improve the react compiler preset filter to reduce false-positives (#​1138)

Improved the filter in the react compiler babel preset to reduce the false-positives so that less modules are processed by the react compiler.

v6.0.2

Compare Source

Allow all options in reactCompilerPreset (#​1189)

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

v6.0.1

Compare Source

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

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

v6.0.0

Compare Source

v5.2.0

Compare Source

v5.1.4

Compare Source

Fix canSkipBabel not accounting for babel.overrides (#​1098)

When configuring babel.overrides without top-level plugins or presets, Babel was incorrectly skipped. The canSkipBabel function now checks for overrides.length to ensure override configurations are processed.

v5.1.3

Compare Source

v5.1.2

Compare Source

v5.1.1

Compare Source

Update code to support newer rolldown-vite (#​976)

rolldown-vite will remove optimizeDeps.rollupOptions in favor of optimizeDeps.rolldownOptions soon. This plugin now uses optimizeDeps.rolldownOptions to support newer rolldown-vite. Please update rolldown-vite to the latest version if you are using an older version.

v5.1.0

Compare Source

Add @vitejs/plugin-react/preamble virtual module for SSR HMR (#​890)

SSR applications can now initialize HMR runtime by importing @vitejs/plugin-react/preamble at the top of their client entry instead of manually calling transformIndexHtml. This simplifies SSR setup for applications that don't use the transformIndexHtml API.

Fix raw Rolldown support for Rolldown 1.0.0-beta.44+ (#​930)

Rolldown 1.0.0-beta.44+ removed the top-level jsx option in favor of transform.jsx. This plugin now uses the transform.jsx option to support Rolldown 1.0.0-beta.44+.

v5.0.4

Compare Source

Perf: use native refresh wrapper plugin in rolldown-vite (#​881)

v5.0.3

Compare Source

HMR did not work for components imported with queries with rolldown-vite (#​872)
Perf: simplify refresh wrapper generation (#​835)

v5.0.2

Compare Source

Skip transform hook completely in rolldown-vite in dev if possible (#​783)

v5.0.1

Compare Source

Set optimizeDeps.rollupOptions.transform.jsx instead of optimizeDeps.rollupOptions.jsx for rolldown-vite (#​735)

optimizeDeps.rollupOptions.jsx is going to be deprecated in favor of optimizeDeps.rollupOptions.transform.jsx.

Perf: skip babel-plugin-react-compiler if code has no "use memo" when { compilationMode: "annotation" } (#​734)
Respect tsconfig jsxImportSource (#​726)
Fix reactRefreshHost option on rolldown-vite (#​716)
Fix RefreshRuntime being injected twice for class components on rolldown-vite (#​708)
Skip babel-plugin-react-compiler on non client environment (689)

v5.0.0

Compare Source


Configuration

📅 Schedule: (in timezone Asia/Tokyo)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate.

@renovate-nownabe-ghac
renovate-nownabe-ghac Bot enabled auto-merge (squash) July 22, 2026 15:54
@renovate-nownabe-ghac
renovate-nownabe-ghac Bot force-pushed the renovate/vitejs-plugin-react-6.x branch from ee55070 to 8b2b9d0 Compare July 22, 2026 15:54
@renovate-nownabe-ghac renovate-nownabe-ghac Bot changed the title chore(deps): update dependency @vitejs/plugin-react to v6 chore: update dependency @vitejs/plugin-react to v6 Jul 22, 2026
@renovate-nownabe-ghac
renovate-nownabe-ghac Bot force-pushed the renovate/vitejs-plugin-react-6.x branch 2 times, most recently from 6f9cc91 to b35304b Compare July 23, 2026 05:36
@renovate-nownabe-ghac
renovate-nownabe-ghac Bot force-pushed the renovate/vitejs-plugin-react-6.x branch 7 times, most recently from 69f6858 to f48680e Compare August 8, 2026 09:05
@renovate-nownabe-ghac
renovate-nownabe-ghac Bot force-pushed the renovate/vitejs-plugin-react-6.x branch 2 times, most recently from 0a8474d to d6bdd37 Compare August 17, 2026 09:02
@renovate-nownabe-ghac
renovate-nownabe-ghac Bot force-pushed the renovate/vitejs-plugin-react-6.x branch from d6bdd37 to bc7a675 Compare September 20, 2026 07:47
nownabe added a commit that referenced this pull request Sep 26, 2026
## Why

Renovate's #258 (wxt 0.21) and #243 (@vitejs/plugin-react v6) each fail
CI alone and depend on each other:

- WXT 0.21's generated `.wxt/tsconfig.json` (which ours extends) now
enables `noImplicitOverride` and `noUncheckedIndexedAccess`
(wxt-dev/wxt#2512), so `bun run typecheck` fails in files the bump
doesn't touch.
- WXT 0.21 makes `vite` a peer (`^6.3.4 || ^7 || ^8`). plugin-react v6
requires Vite 8, so it only works once we pick Vite 8 ourselves.

## What

- `wxt` ^0.21.0, `vite` ^8.0.0 (new explicit devDependency, now a peer),
`@vitejs/plugin-react` ^6.0.0.
- Drop both `overrides`:
- `@vitejs/plugin-react` ^4.3.4 pin was for Vite 6 compatibility; no
longer applies.
- `publish-browser-extension` ^4.0.5 pin (#263) guarded against the
broken 3.x ESM entry. WXT 0.21 requires `^5.1 || ^6`, so 3.x can't
resolve anymore and the pin would force a version outside WXT's range.
It now resolves to 6.1.1, which still defaults to the Chrome API v1.1
path with the same `CHROME_*` env vars and `--chrome-zip` flag. Removed
the matching section in `docs/release.md`.
- Type fixes, no flags disabled:
- `override` on CodeMirror `WidgetType` `eq` / `ignoreEvent` / `destroy`
overrides.
- Indexed access: `withRetry` and `findCommentMappings` now iterate
their backoff arrays (same attempt counts), `buildAllPendingSuggestions`
uses `Object.entries`, `extractSuggestionBlock` uses `m?.[2] ?? null`;
`!` only where bounds are already checked (loop indices, mandatory regex
groups, binary search in `offsetToLineCol`).
  - Tests: `?.` / `!` on indexed results.

## Checks

`bun run test`, `check:lint`, `check:format`, `typecheck`, `build`,
`test:e2e` (4/4) pass locally. `bun run zip` still emits
`.output/bark-<version>-chrome.zip`; the manifest is unchanged; `wxt
submit --dry-run` loads and reaches credential validation;
`dev/preview/vite.config.ts` builds under Vite 8 + plugin-react 6.

Supersedes #258 and #243.
@nownabe nownabe closed this Sep 26, 2026
auto-merge was automatically disabled September 26, 2026 06:37

Pull request was closed

@nownabe
nownabe deleted the renovate/vitejs-plugin-react-6.x branch September 26, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant