Update dependency @vitejs/plugin-react to v6 #36

Open
renovate-bot wants to merge 1 commit from renovate/vitejs-plugin-react-6.x into main
Collaborator

This PR contains the following updates:

Package Type Update Change
@vitejs/plugin-react (source) devDependencies major ^4.4.1^6.0.0

Release Notes

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

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

v4.7.0

Compare Source

Add HMR support for compound components (#​518)

HMR now works for compound components like this:

const Root = () => <div>Accordion Root</div>
const Item = () => <div>Accordion Item</div>

export const Accordion = { Root, Item }
Return Plugin[] instead of PluginOption[] (#​537)

The return type has changed from react(): PluginOption[] to more specialized type react(): Plugin[]. This allows for type-safe manipulation of plugins, for example:

// previously this causes type errors
react({ babel: { plugins: ['babel-plugin-react-compiler'] } })
  .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' }))

v4.6.0

Compare Source

Add raw Rolldown support

This plugin only worked with Vite. But now it can also be used with raw Rolldown. The main purpose for using this plugin with Rolldown is to use react compiler.


Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

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


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

This PR has been generated by Mend Renovate.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#readme) ([source](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react)) | devDependencies | major | [`^4.4.1` → `^6.0.0`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react/4.5.2/6.0.2) | --- ### Release Notes <details> <summary>vitejs/vite-plugin-react (@&#8203;vitejs/plugin-react)</summary> ### [`v6.0.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#602-2026-05-14) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/1e94c06995c2afe2d1fee5aea2ef9720d35a7e02...6535b55e956b425e6650ffc2cc98fd23cca1d231) ##### Allow all options in reactCompilerPreset ([#&#8203;1189](https://github.com/vitejs/vite-plugin-react/pull/1189)) This is a type only change. Only `compilationMode` and `target` options were available for `reactCompilerPreset`. ### [`v6.0.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#601-2026-03-13) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/dcc901236079ef7fa99139f7ba7beebac583f301...1e94c06995c2afe2d1fee5aea2ef9720d35a7e02) ##### Expand `@rolldown/plugin-babel` peer dep range ([#&#8203;1146](https://github.com/vitejs/vite-plugin-react/pull/1146)) Expanded `@rolldown/plugin-babel` peer dep range to include `^0.2.0`. ### [`v6.0.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#600-2026-03-12) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/fda3a86095556b49ae3c995eb57a30d4e0b8fa8d...dcc901236079ef7fa99139f7ba7beebac583f301) ### [`v5.2.0`](https://github.com/vitejs/vite-plugin-react/compare/f066114c3e6bf18f5209ff3d3ef6bf1ab46d3866...fda3a86095556b49ae3c995eb57a30d4e0b8fa8d) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/f066114c3e6bf18f5209ff3d3ef6bf1ab46d3866...fda3a86095556b49ae3c995eb57a30d4e0b8fa8d) ### [`v5.1.4`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#514-2026-02-10) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/cf0cb8aa3398e312f4e91b702281806aad004cd7...f066114c3e6bf18f5209ff3d3ef6bf1ab46d3866) ##### Fix `canSkipBabel` not accounting for `babel.overrides` ([#&#8203;1098](https://github.com/vitejs/vite-plugin-react/pull/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`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#513-2026-02-02) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/f127a24376a90a82acf5b8aad4be750bec3045f3...cf0cb8aa3398e312f4e91b702281806aad004cd7) ### [`v5.1.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#512-2025-12-08) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/23db72731b7c9c3d57a8188f0395d2ec90a6e2f6...f127a24376a90a82acf5b8aad4be750bec3045f3) ### [`v5.1.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/3e5a3742e94be975cbcec230fbab5e801b80dc5b...23db72731b7c9c3d57a8188f0395d2ec90a6e2f6) ##### Update code to support newer `rolldown-vite` ([#&#8203;976](https://github.com/vitejs/vite-plugin-react/pull/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`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#510-2025-10-24) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/450d7df80a52c45f3da7a9612d96a4913f565ed7...3e5a3742e94be975cbcec230fbab5e801b80dc5b) ##### Add `@vitejs/plugin-react/preamble` virtual module for SSR HMR ([#&#8203;890](https://github.com/vitejs/vite-plugin-react/pull/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+ ([#&#8203;930](https://github.com/vitejs/vite-plugin-react/pull/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`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#504-2025-09-27) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/8293cb38945e56729b5b045b09858da6b78ba3a3...450d7df80a52c45f3da7a9612d96a4913f565ed7) ##### Perf: use native refresh wrapper plugin in rolldown-vite ([#&#8203;881](https://github.com/vitejs/vite-plugin-react/pull/881)) ### [`v5.0.3`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#503-2025-09-17) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/1f4b4d9523c0cbdba66724e83477309ef65cac96...8293cb38945e56729b5b045b09858da6b78ba3a3) ##### HMR did not work for components imported with queries with rolldown-vite ([#&#8203;872](https://github.com/vitejs/vite-plugin-react/pull/872)) ##### Perf: simplify refresh wrapper generation ([#&#8203;835](https://github.com/vitejs/vite-plugin-react/pull/835)) ### [`v5.0.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#502-2025-08-28) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/efe434417542cdbfbb00503d4c35ffbba49d3efa...1f4b4d9523c0cbdba66724e83477309ef65cac96) ##### Skip transform hook completely in rolldown-vite in dev if possible ([#&#8203;783](https://github.com/vitejs/vite-plugin-react/pull/783)) ### [`v5.0.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#501-2025-08-19) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/9e4a94428dae6d39ccc13e0220f2abc7a76aeb5e...efe434417542cdbfbb00503d4c35ffbba49d3efa) ##### Set `optimizeDeps.rollupOptions.transform.jsx` instead of `optimizeDeps.rollupOptions.jsx` for rolldown-vite ([#&#8203;735](https://github.com/vitejs/vite-plugin-react/pull/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" }` ([#&#8203;734](https://github.com/vitejs/vite-plugin-react/pull/734)) ##### Respect tsconfig `jsxImportSource` ([#&#8203;726](https://github.com/vitejs/vite-plugin-react/pull/726)) ##### Fix `reactRefreshHost` option on rolldown-vite ([#&#8203;716](https://github.com/vitejs/vite-plugin-react/pull/716)) ##### Fix `RefreshRuntime` being injected twice for class components on rolldown-vite ([#&#8203;708](https://github.com/vitejs/vite-plugin-react/pull/708)) ##### Skip `babel-plugin-react-compiler` on non client environment ([689](https://github.com/vitejs/vite-plugin-react/pull/689)) ### [`v5.0.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#500-2025-08-07) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/80417060f7bc239d5100e1b47c819e8364c7d551...9e4a94428dae6d39ccc13e0220f2abc7a76aeb5e) ### [`v4.7.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#470-2025-07-18) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/12bd153622731890678e43367e30c4a212d74376...80417060f7bc239d5100e1b47c819e8364c7d551) ##### Add HMR support for compound components ([#&#8203;518](https://github.com/vitejs/vite-plugin-react/pull/518)) HMR now works for compound components like this: ```tsx const Root = () => <div>Accordion Root</div> const Item = () => <div>Accordion Item</div> export const Accordion = { Root, Item } ``` ##### Return `Plugin[]` instead of `PluginOption[]` ([#&#8203;537](https://github.com/vitejs/vite-plugin-react/pull/537)) The return type has changed from `react(): PluginOption[]` to more specialized type `react(): Plugin[]`. This allows for type-safe manipulation of plugins, for example: ```tsx // previously this causes type errors react({ babel: { plugins: ['babel-plugin-react-compiler'] } }) .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' })) ``` ### [`v4.6.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#460-2025-06-23) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/bfb45addb83ebae8feebdb75be2e07ce27e916cb...12bd153622731890678e43367e30c4a212d74376) ##### Add raw Rolldown support This plugin only worked with Vite. But now it can also be used with raw Rolldown. The main purpose for using this plugin with Rolldown is to use react compiler. </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My45MS40IiwidXBkYXRlZEluVmVyIjoiNDMuMTc3LjkiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbXX0=-->
Update dependency @vitejs/plugin-react to v6
Some checks failed
renovate/artifacts Artifact file update failure
PR Validation / pr-validation (pull_request) Failing after 0s
Web Deployment Container / determine-workflow (pull_request) Has been cancelled
Web Deployment Container / nonprod-deploy (pull_request) Has been cancelled
Web Deployment Container / prod-deploy (pull_request) Has been cancelled
api-deploy-nonprod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
api-deploy-prod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
web-deploy-nonprod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
web-deploy-prod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
61651926e1
Author
Collaborator

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: web/package-lock.json
undefined
### ⚠️ Artifact update problem Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens: - any of the package files in this branch needs updating, or - the branch becomes conflicted, or - you click the rebase/retry checkbox if found above, or - you rename this PR's title to start with "rebase!" to trigger it manually The artifact failure details are included below: ##### File name: web/package-lock.json ``` undefined ```
Some checks failed
renovate/artifacts Artifact file update failure
PR Validation / pr-validation (pull_request) Failing after 0s
Web Deployment Container / determine-workflow (pull_request) Has been cancelled
Web Deployment Container / nonprod-deploy (pull_request) Has been cancelled
Web Deployment Container / prod-deploy (pull_request) Has been cancelled
api-deploy-nonprod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
api-deploy-prod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
web-deploy-nonprod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
web-deploy-prod.yml / Update dependency @vitejs/plugin-react to v6 (pull_request) Failing after 0s
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/vitejs-plugin-react-6.x:renovate/vitejs-plugin-react-6.x
git switch renovate/vitejs-plugin-react-6.x

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/vitejs-plugin-react-6.x
git switch renovate/vitejs-plugin-react-6.x
git rebase main
git switch main
git merge --ff-only renovate/vitejs-plugin-react-6.x
git switch renovate/vitejs-plugin-react-6.x
git rebase main
git switch main
git merge --no-ff renovate/vitejs-plugin-react-6.x
git switch main
git merge --squash renovate/vitejs-plugin-react-6.x
git switch main
git merge --ff-only renovate/vitejs-plugin-react-6.x
git switch main
git merge renovate/vitejs-plugin-react-6.x
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Doble/ShiftSync!36
No description provided.