Skip to content
This repository was archived by the owner on May 19, 2026. It is now read-only.

chore(deps): update dependency @vitejs/plugin-react-swc to v4 - #67

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/vitejs-plugin-react-swc-4.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/vitejs-plugin-react-swc-4.x

Conversation

@renovate

@renovate renovate Bot commented Aug 7, 2025 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@vitejs/plugin-react-swc (source) ^3.7.0 → ^4.0.0 age confidence

Release Notes

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

v4.3.1

Compare Source

Avoid esbuild warnings with Vite 8 #​1195

Fixes #​1187.

v4.3.0

Compare Source

Add Vite 8 to peerDependencies range #​1142

This plugin is compatible with Vite 8.

v4.2.3

Compare Source

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' }))

v3.10.2

Compare Source

Suggest @vitejs/plugin-react-oxc if rolldown-vite is detected #​491

Emit a log which recommends @vitejs/plugin-react-oxc when rolldown-vite is detected to improve performance and use Oxc under the hood. The warning can be disabled by setting disableOxcRecommendation: true in the plugin options.

Use optimizeDeps.rollupOptions instead of optimizeDeps.esbuildOptions for rolldown-vite #​489

This suppresses the warning about optimizeDeps.esbuildOptions being deprecated in rolldown-vite.

Add Vite 7-beta to peerDependencies range #​497

React plugins are compatible with Vite 7, this removes the warning when testing the beta.

v3.10.1

Compare Source

Add explicit semicolon in preambleCode #​485

This fixes an edge case when using HTML minifiers that strips line breaks aggressively.

v3.10.0

Compare Source

Add filter for rolldown-vite #​470

Added filter so that it is more performant when running this plugin with rolldown-powered version of Vite.

Skip HMR preamble in Vitest browser mode #​478

This was causing annoying Sourcemap for "/@&#8203;react-refresh" points to missing source files and is unnecessary in test mode.

Skip HMR for JSX files with hooks #​480

This removes the HMR warning for hooks with JSX.

v3.9.0

Compare Source

Make compatible with rolldown-vite

This plugin is now compatible with rolldown-powered version of Vite.

v3.8.1

Compare Source

Remove WebContainers warning #​268

SWC is now supported in WebContainers 🎉

v3.8.0

Compare Source

Add useAtYourOwnRisk_mutateSwcOptions option

The future of Vite is with OXC, and from the beginning this was a design choice to not exposed too many specialties from SWC so that Vite React users can move to another transformer later.
Also debugging why some specific version of decorators with some other unstable/legacy feature doesn't work is not fun, so we won't provide support for it, hence the name useAtYourOwnRisk.

react({
  useAtYourOwnRisk_mutateSwcOptions(options) {
    options.jsc.parser.decorators = true;
    options.jsc.transform.decoratorVersion = "2022-03";
  },
});

v3.7.2

Compare Source

Add Vite 6 to peerDependencies range #​207

Thanks @​RobinTail

Revert throw when refresh runtime is loaded twice #​237

Revert the throw when refresh runtime is loaded twice to enable usage in micro frontend apps. This was added to help fix setup usage, and this is not worth an annoying warning for others or a config parameter.

This revert was done in the Babel plugin last year and I didn't port it back.


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 was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 5338c1d to e2b83de Compare August 19, 2025 06:12
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from e2b83de to da87caf Compare August 31, 2025 11:13
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from da87caf to 616ae2c Compare September 17, 2025 08:30
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 616ae2c to d2a389a Compare September 25, 2025 19:29
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch 2 times, most recently from b8fdafb to cb7c2c4 Compare October 24, 2025 11:54
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch 3 times, most recently from 0086ce8 to ef8c6df Compare November 12, 2025 08:48
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from ef8c6df to 6ff6cde Compare November 18, 2025 13:51
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 6ff6cde to 796f6e3 Compare December 3, 2025 19:59
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 796f6e3 to 110c52a Compare December 31, 2025 17:16
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 110c52a to f176bfa Compare January 23, 2026 20:38
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from f176bfa to e418db0 Compare February 2, 2026 12:27
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch 2 times, most recently from 473b41d to 87c5e9e Compare March 12, 2026 17:42
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 87c5e9e to 9308495 Compare March 27, 2026 13:25
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 9308495 to 46bdbc4 Compare April 8, 2026 20:13
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 46bdbc4 to 8850941 Compare April 29, 2026 15:43
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from 8850941 to deef963 Compare May 12, 2026 12:05
@renovate
renovate Bot force-pushed the renovate/vitejs-plugin-react-swc-4.x branch from deef963 to ae8f23e Compare May 14, 2026 22:13

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants