Skip to content

Comments

fix(react): use rolldownOptions instead of deprecated rollupOptions in optimizeDeps on rolldown-vite#976

Merged
hi-ogawa merged 2 commits intomainfrom
copilot/fix-ci-error-in-e2e-tests
Nov 12, 2025
Merged

fix(react): use rolldownOptions instead of deprecated rollupOptions in optimizeDeps on rolldown-vite#976
hi-ogawa merged 2 commits intomainfrom
copilot/fix-ci-error-in-e2e-tests

Conversation

Copy link
Contributor

Copilot AI commented Nov 12, 2025

Description

Fixes #[issue_number] - CI failures in plugin-rsc e2e tests due to deprecation warning in stderr.

When rolldownVersion is detected in Vite, plugin-react was using the deprecated optimizeDeps.rollupOptions property. Vite 7 with Rolldown requires optimizeDeps.rolldownOptions instead.

Changed:

  • packages/plugin-react/src/index.ts: Updated optimizeDeps.rollupOptionsoptimizeDeps.rolldownOptions in the automatic JSX runtime configuration path

The deprecation warning was preventing tests from passing since they assert stderr is empty.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • workers.cloudflare.com
    • Triggering command: node /home/REDACTED/work/vite-plugin-react/vite-plugin-react/packages/plugin-rsc/examples/starter-cf-single/node_modules/.bin/../vite/bin/vite.js (dns block)
    • Triggering command: node /home/REDACTED/work/vite-plugin-react/vite-plugin-react/packages/plugin-rsc/examples/starter-cf-single/node_modules/.bin/../vite/bin/vite.js preview (dns block)
    • Triggering command: node /home/REDACTED/work/vite-plugin-react/vite-plugin-react/packages/plugin-rsc/examples/react-router/node_modules/.bin/../vite/bin/vite.js -c ./cf/vite.config.ts (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

fix CI error
Run pnpm -C packages/plugin-rsc test-e2e-ci --project="$BROWSER_NAME": packages/plugin-rsc/e2e/basic.test.ts#L212
2) [chromium] › e2e/basic.test.ts:208:3 › build-default › basic ──────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality

Expected: ""
Received: "`optimizeDeps.rollupOptions` / `ssr.optimizeDeps.rollupOptions` is deprecated. Use `optimizeDeps.rolldownOptions` instead. Note that this option may be set by a plugin. Set VITE_DEPRECATION_TRACE=1 to see where it is called.
"

  210 |     await page.goto(f.url())
  211 |     await waitForHydration(page)
> 212 |     expect(f.proc().stderr()).toBe('')
      |                               ^
  213 |   })
  214 |
  215 |   test('client component', async ({ page }) => {
    at /home/runner/work/vite-plugin-react/vite-plugin-react/packages/plugin-rsc/e2e/basic.test.ts:212:31

Run pnpm -C packages/plugin-rsc test-e2e-ci --project="$BROWSER_NAME": packages/plugin-rsc/e2e/basic.test.ts#L212

  1. [chromium] › e2e/basic.test.ts:208:3 › dev-default › basic ────────────────────────────────────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality

Expected: ""
Received: "`optimizeDeps.rollupOptions` / `ssr.optimizeDeps.rollupOptions` is deprecated. Use `optimizeDeps.rolldownOptions` instead. Note that this option may be set by a plugin. Set VITE_DEPRECATION_TRACE=1 to see where it is called.
"

  210 |     await page.goto(f.url())
  211 |     await waitForHydration(page)
> 212 |     expect(f.proc().stderr()).toBe('')
      |                               ^
  213 |   })
  214 |
  215 |   test('client component', async ({ page }) => {
    at /home/runner/work/vite-plugin-react/vite-plugin-react/packages/plugin-rsc/e2e/basic.test.ts:212:31

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

@hi-ogawa
Copy link
Contributor

@copilot the issue is likely in react plugin instead of rsc plugin

optimizeDeps: {
rollupOptions: { transform: { jsx: { runtime: 'automatic' } } },
},
.

Replace deprecated `optimizeDeps.rollupOptions` with `optimizeDeps.rolldownOptions`
in plugin-react to fix CI deprecation warning when using rolldown-vite.

Fixes the CI error where tests were failing due to stderr containing:
"`optimizeDeps.rollupOptions` / `ssr.optimizeDeps.rollupOptions` is deprecated.
Use `optimizeDeps.rolldownOptions` instead."

Co-authored-by: hi-ogawa <[email protected]>
Copilot AI changed the title [WIP] Fix CI error in end-to-end testing fix: use rolldownOptions instead of deprecated rollupOptions in optimizeDeps Nov 12, 2025
Copilot AI requested a review from hi-ogawa November 12, 2025 03:47
Copy link
Contributor Author

Copilot AI commented Nov 12, 2025

@copilot the issue is likely in react plugin instead of rsc plugin https://github.com/vitejs/vite-plugin-react/blob/fc76c72e42b4a9ce16e3ac844fdc1039838820e2/packages/plugin-react/src/index.ts#L165-L16...

Correct! I've already fixed that in commit 4115707 by changing optimizeDeps.rollupOptions to optimizeDeps.rolldownOptions at line 166.

@hi-ogawa hi-ogawa changed the title fix: use rolldownOptions instead of deprecated rollupOptions in optimizeDeps fix(react): use rolldownOptions instead of deprecated rollupOptions in optimizeDeps Nov 12, 2025
@hi-ogawa hi-ogawa changed the title fix(react): use rolldownOptions instead of deprecated rollupOptions in optimizeDeps fix(react): use rolldownOptions instead of deprecated rollupOptions in optimizeDeps on rolldown-vite Nov 12, 2025
@hi-ogawa hi-ogawa marked this pull request as ready for review November 12, 2025 04:59
@hi-ogawa hi-ogawa requested a review from sapphi-red November 12, 2025 04:59
@hi-ogawa hi-ogawa merged commit 4a2e229 into main Nov 12, 2025
24 of 25 checks passed
@hi-ogawa hi-ogawa deleted the copilot/fix-ci-error-in-e2e-tests branch November 12, 2025 05:18
@sapphi-red
Copy link
Member

Ah, I noticed that we have the same in other plugins as well.

sapphi-red added a commit that referenced this pull request Nov 12, 2025
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 16, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 19, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 20, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 21, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 22, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 23, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 24, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 25, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 26, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 28, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Nov 29, 2025
| datasource | package              | from  | to    |
| ---------- | -------------------- | ----- | ----- |
| npm        | @vitejs/plugin-react | 5.1.0 | 5.1.1 |


## [v5.1.1](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

##### Update code to support newer `rolldown-vite` ([#976](vitejs/vite-plugin-react#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.
736-c41-2c1-e464fc974 pushed a commit to Swiss-Armed-Forces/Loom that referenced this pull request Jan 12, 2026
This MR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [@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.5.2` → `^5.0.0`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react/4.7.0/5.1.2) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/vitejs/vite-plugin-react/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vitejs/vite-plugin-react) |

---

### Release Notes

<details>
<summary>vitejs/vite-plugin-react (@&#8203;vitejs/plugin-react)</summary>

### [`v5.1.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#512-2025-12-08)

[Compare Source](vitejs/vite-plugin-react@23db727...f127a24)

### [`v5.1.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

[Compare Source](vitejs/vite-plugin-react@3e5a374...23db727)

##### Update code to support newer `rolldown-vite` ([#&#8203;976](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react@450d7df...3e5a374)

##### Add `@vitejs/plugin-react/preamble` virtual module for SSR HMR ([#&#8203;890](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react@8293cb3...450d7df)

##### Perf: use native refresh wrapper plugin in rolldown-vite ([#&#8203;881](vitejs/vite-plugin-react#881))

### [`v5.0.3`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#503-2025-09-17)

[Compare Source](vitejs/vite-plugin-react@1f4b4d9...8293cb3)

##### HMR did not work for components imported with queries with rolldown-vite ([#&#8203;872](vitejs/vite-plugin-react#872))

##### Perf: simplify refresh wrapper generation ([#&#8203;835](vitejs/vite-plugin-react#835))

### [`v5.0.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#502-2025-08-28)

[Compare Source](vitejs/vite-plugin-react@efe4344...1f4b4d9)

##### Skip transform hook completely in rolldown-vite in dev if possible ([#&#8203;783](vitejs/vite-plugin-react#783))

### [`v5.0.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#501-2025-08-19)

[Compare Source](vitejs/vite-plugin-react@9e4a944...efe4344)

##### Set `optimizeDeps.rollupOptions.transform.jsx` instead of `optimizeDeps.rollupOptions.jsx` for rolldown-vite ([#&#8203;735](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react#734))

##### Respect tsconfig `jsxImportSource` ([#&#8203;726](vitejs/vite-plugin-react#726))

##### Fix `reactRefreshHost` option on rolldown-vite ([#&#8203;716](vitejs/vite-plugin-react#716))

##### Fix `RefreshRuntime` being injected twice for class components on rolldown-vite ([#&#8203;708](vitejs/vite-plugin-react#708))

##### Skip `babel-plugin-react-compiler` on non client environment ([689](vitejs/vite-plugin-react#689))

### [`v5.0.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#500-2025-08-07)

[Compare Source](vitejs/vite-plugin-react@8041706...9e4a944)

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNjguMSIsInVwZGF0ZWRJblZlciI6IjQyLjcwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsInJlbm92YXRlIl19-->

See merge request swiss-armed-forces/cyber-command/cea/loom!212

Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
736-c41-2c1-e464fc974 added a commit to Swiss-Armed-Forces/Loom that referenced this pull request Jan 12, 2026
chore(deps): update @vitejs/plugin-react (major)

This MR contains the following updates:

| Package | Type | Update | Change | OpenSSF |
|---|---|---|---|---|
| [@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.5.2` → `^5.0.0`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react/4.7.0/5.1.2) | [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/vitejs/vite-plugin-react/badge)](https://securityscorecards.dev/viewer/?uri=github.com/vitejs/vite-plugin-react) |

---

### Release Notes

<details>
<summary>vitejs/vite-plugin-react (@&#8203;vitejs/plugin-react)</summary>

### [`v5.1.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#512-2025-12-08)

[Compare Source](vitejs/vite-plugin-react@23db727...f127a24)

### [`v5.1.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#511-2025-11-12)

[Compare Source](vitejs/vite-plugin-react@3e5a374...23db727)

##### Update code to support newer `rolldown-vite` ([#&#8203;976](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react@450d7df...3e5a374)

##### Add `@vitejs/plugin-react/preamble` virtual module for SSR HMR ([#&#8203;890](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react@8293cb3...450d7df)

##### Perf: use native refresh wrapper plugin in rolldown-vite ([#&#8203;881](vitejs/vite-plugin-react#881))

### [`v5.0.3`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#503-2025-09-17)

[Compare Source](vitejs/vite-plugin-react@1f4b4d9...8293cb3)

##### HMR did not work for components imported with queries with rolldown-vite ([#&#8203;872](vitejs/vite-plugin-react#872))

##### Perf: simplify refresh wrapper generation ([#&#8203;835](vitejs/vite-plugin-react#835))

### [`v5.0.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#502-2025-08-28)

[Compare Source](vitejs/vite-plugin-react@efe4344...1f4b4d9)

##### Skip transform hook completely in rolldown-vite in dev if possible ([#&#8203;783](vitejs/vite-plugin-react#783))

### [`v5.0.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#501-2025-08-19)

[Compare Source](vitejs/vite-plugin-react@9e4a944...efe4344)

##### Set `optimizeDeps.rollupOptions.transform.jsx` instead of `optimizeDeps.rollupOptions.jsx` for rolldown-vite ([#&#8203;735](vitejs/vite-plugin-react#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](vitejs/vite-plugin-react#734))

##### Respect tsconfig `jsxImportSource` ([#&#8203;726](vitejs/vite-plugin-react#726))

##### Fix `reactRefreshHost` option on rolldown-vite ([#&#8203;716](vitejs/vite-plugin-react#716))

##### Fix `RefreshRuntime` being injected twice for class components on rolldown-vite ([#&#8203;708](vitejs/vite-plugin-react#708))

##### Skip `babel-plugin-react-compiler` on non client environment ([689](vitejs/vite-plugin-react#689))

### [`v5.0.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react/CHANGELOG.md#500-2025-08-07)

[Compare Source](vitejs/vite-plugin-react@8041706...9e4a944)

</details>

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xNjguMSIsInVwZGF0ZWRJblZlciI6IjQyLjcwLjAiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyIsInJlbm92YXRlIl19-->

See merge request swiss-armed-forces/cyber-command/cea/loom!212

Co-authored-by: Loom MR Pipeline Trigger <group_103951964_bot_9504bb8dead6d4e406ad817a607f24be@noreply.gitlab.com>
Co-authored-by: open-source Pipeline <group_90701827_bot_ed04ae348bc5f40af9966fb8b6867e99@noreply.gitlab.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.

3 participants