Skip to content

Bump vite and @vitejs/plugin-react-swc in /bwell-typescript-react#188

Closed
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/bwell-typescript-react/multi-7af51fb5bd
Closed

Bump vite and @vitejs/plugin-react-swc in /bwell-typescript-react#188
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/bwell-typescript-react/multi-7af51fb5bd

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Jun 30, 2026

Copy link
Copy Markdown
Contributor

Bumps vite and @vitejs/plugin-react-swc. These dependencies needed to be updated together.
Updates vite from 7.1.11 to 8.1.4

Release notes

Sourced from vite's releases.

v8.1.4

Please refer to CHANGELOG.md for details.

v8.1.3

Please refer to CHANGELOG.md for details.

v8.1.2

Please refer to CHANGELOG.md for details.

v8.1.1

Please refer to CHANGELOG.md for details.

create-vite@8.1.0

Please refer to CHANGELOG.md for details.

plugin-legacy@8.1.0

Please refer to CHANGELOG.md for details.

v8.1.0

Please refer to CHANGELOG.md for details.

plugin-legacy@8.1.0-beta.0

Please refer to CHANGELOG.md for details.

v8.1.0-beta.0

Please refer to CHANGELOG.md for details.

v8.0.16

Please refer to CHANGELOG.md for details.

v8.0.15

Please refer to CHANGELOG.md for details.

v8.0.14

Please refer to CHANGELOG.md for details.

v8.0.13

Please refer to CHANGELOG.md for details.

v8.0.12

Please refer to CHANGELOG.md for details.

v8.0.11

Please refer to CHANGELOG.md for details.

v8.0.10

Please refer to CHANGELOG.md for details.

v8.0.9

Please refer to CHANGELOG.md for details.

... (truncated)

Changelog

Sourced from vite's changelog.

8.1.4 (2026-07-09)

Features

Bug Fixes

  • build: add workaround for building on stackblitz (#22840) (575c32c)
  • build: keep import.meta.url in preload function as-is (#22839) (f1f90ed)
  • deps: update all non-major dependencies (#22865) (d4295a9)
  • deps: update rolldown-related dependencies (#22866) (7cf07e4)
  • html: avoid backtracking in import-only check (#22848) (b5868c0)
  • optimizer: avoid optimizer run for transform request before init (#22852) (72a5e21)
  • ssr: align named export function call stacktrace column with Node (#22829) (173a1b6)
  • strip pure CSS chunk imports when chunkImportMap is enabled (#22841) (648bd04)

Documentation

Miscellaneous Chores

  • deps: update dependency postcss-modules to v9 (#22867) (a9539d6)

Code Refactoring

Tests

Build System

8.1.3 (2026-07-02)

Bug Fixes

8.1.2 (2026-06-30)

Bug Fixes

  • deps: revert es-module-lexer to 2.1.0 (#22827) (0d3bd7c)
  • restore, "fix: resolve pnpm .modules.yaml from workspace root instead of cwd (#22757)" (#22825) (efb98cc)

... (truncated)

Commits

Updates @vitejs/plugin-react-swc from 3.10.2 to 4.3.1

Release notes

Sourced from @​vitejs/plugin-react-swc's releases.

plugin-react-swc@4.3.1

Avoid esbuild warnings with Vite 8 #1195

Fixes #1187.

plugin-react-swc@4.3.0

Add Vite 8 to peerDependencies range #1142

This plugin is compatible with Vite 8.

plugin-react-swc@4.2.3

No release notes provided.

plugin-react-swc@4.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.

plugin-react-swc@4.2.1

Fix @vitejs/plugin-react-swc/preamble on build (#962)

plugin-react-swc@4.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.

plugin-react-swc@4.1.0

Set SWC cacheRoot options

This is set to {viteCacheDir}/swc and override the default of .swc.

Perf: simplify refresh wrapper generation (#835)

plugin-react-swc@4.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.

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+

This plugin now requires Node 20.19+ or 22.12+.

plugin-react-swc@4.0.0-beta.0

... (truncated)

Changelog

Sourced from @​vitejs/plugin-react-swc's changelog.

4.3.1 (2026-05-14)

Avoid esbuild warnings with Vite 8 #1195

Fixes #1187.

4.3.0 (2026-03-12)

Add Vite 8 to peerDependencies range #1142

This plugin is compatible with Vite 8.

4.2.3 (2026-02-02)

4.2.2 (2025-11-12)

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.

4.2.1 (2025-11-05)

Fix @vitejs/plugin-react-swc/preamble on build (#962)

4.2.0 (2025-10-24)

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.

4.1.0 (2025-09-17)

Set SWC cacheRoot options

This is set to {viteCacheDir}/swc and override the default of .swc.

Perf: simplify refresh wrapper generation (#835)

4.0.1 (2025-08-19)

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.

4.0.0 (2025-08-07)

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by GitHub Actions, a new releaser for @​vitejs/plugin-react-swc since your current version.


@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Jun 30, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner June 30, 2026 17:58
@dependabot dependabot Bot added javascript Pull requests that update javascript code Major Increment the Major version labels Jun 30, 2026
@dependabot
dependabot Bot requested a review from a team as a code owner June 30, 2026 17:58
Comment thread bwell-typescript-react/package.json Outdated
Comment on lines +37 to +44
"@vitejs/plugin-react-swc": "^4.3.1",
"eslint": "^8.57.0",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"playwright": "^1.56.1",
"toml": "^3.0.0",
"typescript": "^5.4.5",
"vite": "^7.1.11"
"vite": "^8.1.2"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟣 The devcontainer Dockerfile (bwell-typescript-react/.devcontainer/Dockerfile:4) pins FROM node:21, which doesn't satisfy the ^20.19.0 || >=22.12.0 engine range declared by Vite (already in Vite 7) and now also by @vitejs/plugin-react-swc@4 and Vite 8's new rolldown native bindings. This is a pre-existing inconsistency (README.md:8 already says "Node 22 (or higher)"), but this PR makes it more likely to bite — worth bumping the Dockerfile to node:22 (or node:20 at 20.19+) in a follow-up.

Extended reasoning...

What the bug is

The devcontainer Dockerfile at bwell-typescript-react/.devcontainer/Dockerfile line 4 reads:

FROM node:21

This is the image used by the documented test workflow — README.md lines 22-29 explicitly direct users to "Reopen in container" and then run npm run e2e. The container's postCreateCommand runs npm install.

After this PR, the resolved lockfile contains several packages declaring engines: { node: "^20.19.0 || >=22.12.0" }:

  • vite@8.1.2
  • @vitejs/plugin-react-swc@4.3.1 (the 3.x line had no engines field)
  • rolldown@1.1.3 and every @rolldown/binding-* native binding (e.g. @rolldown/binding-linux-x64-gnu)

The caret ^20.19.0 resolves to >=20.19.0 <21.0.0. Node 21.x sits in the gap between the two disjuncts and satisfies neither side of the OR.

Step-by-step proof

  1. User follows README.md → "Reopen in container" → image is built from node:21 (e.g. node:21.7.x).
  2. postCreateCommand runs npm install. The package manifest now requires vite@^8.1.2 and @vitejs/plugin-react-swc@^4.3.1.
  3. npm walks the lockfile and resolves dozens of packages whose engines.node field excludes Node 21. Each one emits an EBADENGINE warning. Install completes (npm is non-strict by default), so the user sees a wall of warnings but believes the install succeeded.
  4. The @rolldown/binding-* packages are optionalDependencies of rolldown. With non-strict engines they still install on Node 21, but their N-API/ABI was compiled against the Node 20.19+/22.12+ baseline — the binding may load, may throw at require time, or may silently misbehave when invoked. Even when it loads, the user is running on an EOL (2024-06-01) runtime that the toolchain author did not test against.
  5. npm run e2evite build → loads rolldown → either fails outright or runs on an unsupported configuration.

Why this is pre_existing rather than normal

The verifiers split on severity. The strongest counter is that Vite 7.1.11 already declared the same engines: { node: "^20.19.0 || >=22.12.0" } — this constraint was introduced in Vite 7.0, not Vite 8. So the EBADENGINE warning on Node 21 was already happening before this PR, and README.md already documents Node 22+ as the requirement. The Dockerfile has been inconsistent with both the docs and the prior Vite 7 engine range for some time, and this PR doesn't touch the Dockerfile.

What this PR does change is the failure surface: @vitejs/plugin-react-swc 3.x had no engines field at all, and Vite 7 used rollup + esbuild (which accept Node ≥18). Vite 8 swaps to rolldown with engine-gated native bindings, so the consequences of running on Node 21 are now more concrete than just a startup warning.

How to fix

Bump bwell-typescript-react/.devcontainer/Dockerfile line 4 to either:

FROM node:22

(matching what README.md already states) or FROM node:20 if you want the LTS lower bound (and pin to a tag at 20.19+). This is a one-line change and brings the devcontainer in line with both the documented requirement and what the dependency tree actually asks for. Recommend doing it in a follow-up commit since it's not introduced by this dependabot bump.

Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) and [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react-swc). These dependencies needed to be updated together.

Updates `vite` from 7.1.11 to 8.1.4
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/v8.1.4/packages/vite)

Updates `@vitejs/plugin-react-swc` from 3.10.2 to 4.3.1
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/v4.3.1/packages/plugin-react-swc)

---
updated-dependencies:
- dependency-name: "@vitejs/plugin-react-swc"
  dependency-version: 4.3.1
  dependency-type: direct:development
- dependency-name: vite
  dependency-version: 8.1.2
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/bwell-typescript-react/multi-7af51fb5bd branch from a1b95a7 to e264ded Compare July 9, 2026 16:02
@dependabot @github

dependabot Bot commented on behalf of github Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #192.

@dependabot dependabot Bot closed this Jul 21, 2026
@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/bwell-typescript-react/multi-7af51fb5bd branch July 21, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code Major Increment the Major version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants