Skip to content

Commit a51319a

Browse files
Upgrade: [dependabot] - bump @vitejs/plugin-react-swc from 4.2.0 to 4.2.1 (#1494)
Bumps [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react-swc) from 4.2.0 to 4.2.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite-plugin-react/releases"><code>@​vitejs/plugin-react-swc</code>'s releases</a>.</em></p> <blockquote> <h2>[email protected]</h2> <p>Remove generic parameter on <code>Plugin</code> to avoid type error with Rollup 4/Vite 5 and <code>skipLibCheck: false</code>.</p> <p>I expect very few people to currently use this feature, but if you are extending the React plugin via <code>api</code> object, you can get back the typing of the hook by importing <code>ViteReactPluginApi</code>:</p> <pre lang="ts"><code>import type { Plugin } from 'vite' import type { ViteReactPluginApi } from '@vitejs/plugin-react' <p>export const somePlugin: Plugin = {<br /> name: 'some-plugin',<br /> api: {<br /> reactBabel: (babelConfig) =&gt; {<br /> babelConfig.plugins.push('some-babel-plugin')<br /> },<br /> } satisfies ViteReactPluginApi,<br /> }<br /> </code></pre></p> <h2>[email protected]</h2> <h3>Fix <code>@vitejs/plugin-react-swc/preamble</code> on build (<a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/962">#962</a>)</h3> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc/CHANGELOG.md"><code>@​vitejs/plugin-react-swc</code>'s changelog</a>.</em></p> <blockquote> <h2>4.2.1 (2025-11-05)</h2> <h3>Fix <code>@vitejs/plugin-react-swc/preamble</code> on build (<a href="https://redirect.github.com/vitejs/vite-plugin-react/pull/962">#962</a>)</h3> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/vitejs/vite-plugin-react/commits/v4.2.1/packages/plugin-react-swc">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@vitejs/plugin-react-swc&package-manager=npm_and_yarn&previous-version=4.2.0&new-version=4.2.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) 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-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will 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 version` will 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 dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: anthony-nhs <[email protected]>
1 parent 00c91cf commit a51319a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/cpt-ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@types/govuk-frontend": "^5.11.0",
3636
"@types/react": "18.3.1",
3737
"@types/react-dom": "18.3.1",
38-
"@vitejs/plugin-react-swc": "^4.2.0",
38+
"@vitejs/plugin-react-swc": "^4.2.2",
3939
"axios-mock-adapter": "^2.1.0",
4040
"sass": "^1.94.0",
4141
"vite": "^7.2.2"

0 commit comments

Comments
 (0)