chore(deps): update dependency @vitejs/plugin-react-swc to v4
This MR contains the following updates:
| Package | Change | Age | Confidence |
|---|---|---|---|
| @vitejs/plugin-react-swc (source) | ^3.10.2 -> ^4.0.0 |
Release Notes
vitejs/vite-plugin-react (@vitejs/plugin-react-swc)
v4.2.2
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
Fix @vitejs/plugin-react-swc/preamble on build (#962)
v4.2.0
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
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
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
v3.11.0
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
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.