Bump @vitejs/plugin-react-swc from 3.11.0 to 4.0.0
Type: Pull Request
State: Merged
Association: Contributor
Comments: 0
(3 months ago)
(3 months ago)
(3 months ago)
dependencies javascript
⚠️ Dependabot is rebasing this PR ⚠️
Rebasing might not happen immediately, so don't worry if this takes some time.
Note: if you make any changes to this PR yourself, they will take precedence over the rebase.
Bumps @vitejs/plugin-react-swc from 3.11.0 to 4.0.0.
Release notes
Sourced from @vitejs/plugin-react-swc's releases.
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).
With these changes, only the file extensions is used for filtering processed files and the query param fallback is removed.
jsxRuntimeThe support for React auto import when using classic runtime is removed. This was prone to errors and added complexity for no good reason given the very wide support of automatic runtime nowadays. This migration path should be as simple as removing the runtime option from the config.
Removed options
fastRefresh(#122) This should be correctly activated by plugin without configuration.jsxPure(#129) This is a niche use case that was just passing down the boolean toesbuild.jsxSideEffects.Perf
This release goes in hand with the upcoming Vite 4.3 release focusing on performances:
Other notable changes
- Silence "use client" warning (#144, fix #137)
- Fast Refresh is applied on JS files using automatic runtime (#122, fix #83)
- Vite 4.2 is required as a peer dependency (#128)
- Avoid key collision in React refresh registration (a74dfef, fix #116)
- Throw when refresh runtime is loaded twice (#108, fix #101)
- Don't force optimization of jsx-runtime (#132)
plugin-react-swc@4.0.0
(Same content as v4.0.0-beta.0 https://github.com/vitejs/vite-plugin-react/releases/edit/plugin-react-swc%404.0.0-beta.0)
Require Node 20.19+, 22.12+
... (truncated)
Changelog
Sourced from @vitejs/plugin-react-swc's changelog.
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+.
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
0
0
+0
-0
Package Dependencies
Technical Details
| ID: | 4920381 |
| UUID: | 2736673897 |
| Node ID: | PR_kwDOKKP4rs6jHlRp |
| Host: | GitHub |
| Repository: | gcrozariol/github-issue-viewer-frontend |