Bump @vitejs/plugin-react-swc from 3.6.0 to 4.1.0 in /frontend
Type: Pull Request
State: Open
Association: None
Comments: 0
(about 2 months ago)
(about 2 months ago)
dependencies javascript
Bumps @vitejs/plugin-react-swc from 3.6.0 to 4.1.0.
Release notes
Sourced from @vitejs/plugin-react-swc's releases.
plugin-react@4.1.0
- Add
@types/babel__coresto dependencies (fix #211)- Improve build perf when not using Babel plugins by lazy loading
@babel/core#212- Better invalidation message when an export is added & fix HMR for export of nullish values #215
- Include non-dev jsx runtime in optimizeDeps & support HMR for JS files using the non dev runtime #224
- The build output now contains a
index.d.ctsfile so you don't get types errors when settingmoduleResolutiontonode16ornodenextin your tsconfig (we recommend usingbundlerwhich is more close to how Vite works)plugin-react-swc@4.1.0
Set SWC cacheRoot options
This is set to
{viteCacheDir}/swcand override the default of.swc.Perf: simplify refresh wrapper generation (#835)
plugin-react@4.0.4
- Fix #198: Enable Babel if presets list is not empty
plugin-react@4.0.3
- Revert #108: Remove 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.
plugin-react@4.0.2
- Fix fast-refresh for files that are transformed into jsx (#188)
plugin-react@4.0.1
- Support Vitest deps.experimentalOptimizer
- Support using components inside web workers (#181)
plugin-react-swc@4.0.1
Set
optimizeDeps.rollupOptions.transform.jsxinstead ofoptimizeDeps.rollupOptions.jsxfor rolldown-vite (#735)
optimizeDeps.rollupOptions.jsxis going to be deprecated in favor ofoptimizeDeps.rollupOptions.transform.jsx.plugin-react@4.0.0
Options changes
include/excludeThese options now allow to completely override the files processed by the plugin (#122). This is more in line with other Rollup/Vite plugins and simplify the setup of enabling Fast Refresh for
.mdxfiles. This can be done like this:export default defineConfig({ plugins: [ { enforce: 'pre', ...mdx() }, react({ include: /\.(mdx|js|jsx|ts|tsx)$/ }), ], })These changes also allow to apply Babel plugins on files outside Vite root (expect in node_modules), which improve support for monorepo (fix #16).
... (truncated)
Changelog
Sourced from @vitejs/plugin-react-swc's changelog.
4.1.0 (2025-09-17)
Set SWC cacheRoot options
This is set to
{viteCacheDir}/swcand override the default of.swc.Perf: simplify refresh wrapper generation (#835)
4.0.1 (2025-08-19)
Set
optimizeDeps.rollupOptions.transform.jsxinstead ofoptimizeDeps.rollupOptions.jsxfor rolldown-vite (#735)
optimizeDeps.rollupOptions.jsxis going to be deprecated in favor ofoptimizeDeps.rollupOptions.transform.jsx.4.0.0 (2025-08-07)
4.0.0-beta.0 (2025-07-28)
Require Node 20.19+, 22.12+
This plugin now requires Node 20.19+ or 22.12+.
3.11.0 (2025-07-18)
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 ofPluginOption[](#537)The return type has changed from
react(): PluginOption[]to more specialized typereact(): 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' }))3.10.2 (2025-06-10)
Suggest
@vitejs/plugin-react-oxcif rolldown-vite is detected #491Emit a log which recommends
@vitejs/plugin-react-oxcwhenrolldown-viteis detected to improve performance and use Oxc under the hood. The warning can be disabled by settingdisableOxcRecommendation: truein the plugin options.
... (truncated)
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Pull Request Statistics
1
2
+95
-65
Package Dependencies
@vitejs/plugin-react-swc
npm
3.6.0 → 4.1.0
Major
/frontend
Technical Details
| ID: | 8251294 |
| UUID: | 2851238276 |
| Node ID: | PR_kwDOPcRV386p8nGE |
| Host: | GitHub |
| Repository: | BestAssist/Hotel-Reservation-React-Redux-Sagas-Example---JavaScript-Python- |
| Merge State: | Unknown |