Skip to content

Conversation

@renovate
Copy link
Contributor

@renovate renovate bot commented Aug 7, 2025

This PR contains the following updates:

Package Change Age Confidence
@vitejs/plugin-react-swc (source) 3.10.2 -> 4.2.2 age 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 is behind base branch, 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 was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added the dependencies Pull requests that update a dependency file label Aug 7, 2025
@renovate renovate bot requested a review from a team as a code owner August 7, 2025 13:15
@renovate renovate bot added deps: javascript dependencies Pull requests that update a dependency file labels Aug 7, 2025
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from ee6fb68 to 2edff67 Compare August 19, 2025 05:48
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 2edff67 to 2633474 Compare August 30, 2025 09:55
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch 2 times, most recently from 77e9ed3 to 59c9dfa Compare September 17, 2025 08:23
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 59c9dfa to ef14ca3 Compare September 25, 2025 16:51
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from ef14ca3 to 2ab658f Compare October 15, 2025 07:27
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch 2 times, most recently from c95842e to b139a78 Compare October 31, 2025 03:55
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch 3 times, most recently from 2fe6610 to 3bcea17 Compare November 12, 2025 09:56
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch 2 times, most recently from 1fc7153 to 6d3f92e Compare November 19, 2025 07:12
@renovate renovate bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 6d3f92e to 5344d6b Compare December 3, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file deps: javascript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant