Update dependency @vitejs/plugin-react-swc to v4 #14

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

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@vitejs/plugin-react-swc (source) 3.10.24.2.2 age adoption passing confidence

Release Notes

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

v4.2.2

Compare Source

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

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.

v4.2.1

Compare Source

Fix @vitejs/plugin-react-swc/preamble on build (#​962)

v4.2.0

Compare Source

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

SSR applications can now initialize HMR runtime by importing @vitejs/plugin-react-swc/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.

Use SWC when useAtYourOwnRisk_mutateSwcOptions is provided (#​951)

Previously, this plugin did not use SWC if plugins were not provided even if useAtYourOwnRisk_mutateSwcOptions was provided. This is now fixed.

v4.1.0

Compare Source

Set SWC cacheRoot options

This is set to {viteCacheDir}/swc and override the default of .swc.

Perf: simplify refresh wrapper generation (#​835)

v4.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.

v4.0.0

Compare Source

v3.11.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()
  .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' }))

Configuration

📅 Schedule: 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 Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react-swc#readme) ([source](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react-swc)) | [`3.10.2` → `4.2.2`](https://renovatebot.com/diffs/npm/@vitejs%2fplugin-react-swc/3.10.2/4.2.2) | ![age](https://developer.mend.io/api/mc/badges/age/npm/@vitejs%2fplugin-react-swc/4.2.2?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@vitejs%2fplugin-react-swc/4.2.2?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@vitejs%2fplugin-react-swc/3.10.2/4.2.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@vitejs%2fplugin-react-swc/3.10.2/4.2.2?slim=true) | --- ### Release Notes <details> <summary>vitejs/vite-plugin-react (@&#8203;vitejs/plugin-react-swc)</summary> ### [`v4.2.2`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#422-2025-11-12) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/v4.2.1...5e600a31ec27fae54df58a46ef1fffa80238042e) ##### Update code to support newer `rolldown-vite` ([#&#8203;978](https://github.com/vitejs/vite-plugin-react/pull/978)) `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. ### [`v4.2.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#421-2025-11-05) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/v4.2.0...v4.2.1) ##### Fix `@vitejs/plugin-react-swc/preamble` on build ([#&#8203;962](https://github.com/vitejs/vite-plugin-react/pull/962)) ### [`v4.2.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#420-2025-10-24) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/v4.1.0...v4.2.0) ##### Add `@vitejs/plugin-react-swc/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-swc/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. ##### Use SWC when useAtYourOwnRisk\_mutateSwcOptions is provided ([#&#8203;951](https://github.com/vitejs/vite-plugin-react/pull/951)) Previously, this plugin did not use SWC if plugins were not provided even if `useAtYourOwnRisk_mutateSwcOptions` was provided. This is now fixed. ### [`v4.1.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#410-2025-09-17) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/f21864b102d40fca4f70dfe9112a10101ec12f54...v4.1.0) ##### Set SWC cacheRoot options This is set to `{viteCacheDir}/swc` and override the default of `.swc`. ##### Perf: simplify refresh wrapper generation ([#&#8203;835](https://github.com/vitejs/vite-plugin-react/pull/835)) ### [`v4.0.1`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#401-2025-08-19) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/590f394c1e451987258ed64a4b5fb6207c5e8261...f21864b102d40fca4f70dfe9112a10101ec12f54) ##### 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`. ### [`v4.0.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#400-2025-08-07) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/9e0c1038959e828865be810a164a51c3db1ac375...590f394c1e451987258ed64a4b5fb6207c5e8261) ### [`v3.11.0`](https://github.com/vitejs/vite-plugin-react/blob/HEAD/packages/plugin-react-swc/CHANGELOG.md#3110-2025-07-18) [Compare Source](https://github.com/vitejs/vite-plugin-react/compare/32d49ecf9b15e3070c7abe5a176252a3fe542e5c...9e0c1038959e828865be810a164a51c3db1ac375) ##### 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() .map(p => ({ ...p, applyToEnvironment: e => e.name === 'client' })) ``` </details> --- ### Configuration 📅 **Schedule**: 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 [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi4xIiwidXBkYXRlZEluVmVyIjoiNDIuNjQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZnJvbnRlbmQiLCJyZW5vdmF0ZSJdfQ==-->
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from a82bc33daa to ec6c7ec452 2025-08-21 00:11:38 +01:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from ec6c7ec452 to ce4c651393 2025-08-21 06:02:03 +01:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from ce4c651393 to a41333320b 2025-09-18 06:03:14 +01:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from a41333320b to fda935aa5f 2025-10-20 23:11:27 +01:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from fda935aa5f to bf9a000f23 2025-10-25 06:02:33 +01:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from bf9a000f23 to 4bd1653328 2025-11-06 05:02:47 +00:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from 4bd1653328 to dc629fb827 2025-11-13 05:02:56 +00:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from dc629fb827 to dc9551964e 2025-11-19 20:29:00 +00:00 Compare
renovate-bot force-pushed renovate/vitejs-plugin-react-swc-4.x from dc9551964e to d9d97a4ec0 2025-12-22 19:20:08 +00:00 Compare
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-swc-4.x:renovate/vitejs-plugin-react-swc-4.x
git switch renovate/vitejs-plugin-react-swc-4.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-swc-4.x
git switch renovate/vitejs-plugin-react-swc-4.x
git rebase main
git switch main
git merge --ff-only renovate/vitejs-plugin-react-swc-4.x
git switch renovate/vitejs-plugin-react-swc-4.x
git rebase main
git switch main
git merge --no-ff renovate/vitejs-plugin-react-swc-4.x
git switch main
git merge --squash renovate/vitejs-plugin-react-swc-4.x
git switch main
git merge --ff-only renovate/vitejs-plugin-react-swc-4.x
git switch main
git merge renovate/vitejs-plugin-react-swc-4.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
MobiusReactor/TicTacToeV2!14
No description provided.