Commit 0c8ecd7
Upgrade: [dependabot] - bump @vitejs/plugin-react-swc from 4.1.0 to 4.2.0 (#1463)
Bumps
[@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react-swc)
from 4.1.0 to 4.2.0.
<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>plugin-react@4.2.0</h2>
<h3>Update peer dependency range to target Vite 5</h3>
<p>There were no breaking change that impacted this plugin, so any
combination of React plugins and Vite core version will work.</p>
<h3>Align jsx runtime for optimized dependencies</h3>
<p>This will only affect people using internal libraries that contains
untranspiled JSX. This change aligns the optimizer with the source code
and avoid issues when the published source don't have <code>React</code>
in the scope.</p>
<p>Reminder: While being partially supported in Vite, publishing TS
& JSX outside of internal libraries is highly discouraged.</p>
<h2>plugin-react-swc@4.2.0</h2>
<h3>Add <code>@vitejs/plugin-react-swc/preamble</code> virtual module
for SSR HMR (<a
href="https://redirect.github.com/vitejs/vite-plugin-react/pull/890">#890</a>)</h3>
<p>SSR applications can now initialize HMR runtime by importing
<code>@vitejs/plugin-react-swc/preamble</code> at the top of their
client entry instead of manually calling
<code>transformIndexHtml</code>. This simplifies SSR setup for
applications that don't use the <code>transformIndexHtml</code> API.</p>
<h3>Use SWC when useAtYourOwnRisk_mutateSwcOptions is provided (<a
href="https://redirect.github.com/vitejs/vite-plugin-react/pull/951">#951</a>)</h3>
<p>Previously, this plugin did not use SWC if plugins were not provided
even if <code>useAtYourOwnRisk_mutateSwcOptions</code> was provided.
This is now fixed.</p>
<h2>plugin-react@4.1.1</h2>
<ul>
<li>Enable retainLines to get correct line numbers for jsxDev (fix <a
href="https://redirect.github.com/vitejs/vite-plugin-react/issues/235">#235</a>)</li>
</ul>
</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.0 (2025-10-24)</h2>
<h3>Add <code>@vitejs/plugin-react-swc/preamble</code> virtual module
for SSR HMR (<a
href="https://redirect.github.com/vitejs/vite-plugin-react/pull/890">#890</a>)</h3>
<p>SSR applications can now initialize HMR runtime by importing
<code>@vitejs/plugin-react-swc/preamble</code> at the top of their
client entry instead of manually calling
<code>transformIndexHtml</code>. This simplifies SSR setup for
applications that don't use the <code>transformIndexHtml</code> API.</p>
<h3>Use SWC when useAtYourOwnRisk_mutateSwcOptions is provided (<a
href="https://redirect.github.com/vitejs/vite-plugin-react/pull/951">#951</a>)</h3>
<p>Previously, this plugin did not use SWC if plugins were not provided
even if <code>useAtYourOwnRisk_mutateSwcOptions</code> was provided.
This is now fixed.</p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li>See full diff in <a
href="https://github.com/vitejs/vite-plugin-react/commits/v4.2.0/packages/plugin-react-swc">compare
view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by [GitHub Actions](<a
href="https://www.npmjs.com/~GitHub">https://www.npmjs.com/~GitHub</a>
Actions), a new releaser for <code>@vitejs/plugin-react-swc</code>
since your current version.</p>
</details>
<br />
[](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] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: anthony-nhs <121869075+anthony-nhs@users.noreply.github.com>1 parent 3f3c700 commit 0c8ecd7
2 files changed
+9
-9
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments