Skip to content

chore(deps-dev): bump vite from 7.3.6 to 8.2.1 - #177

Closed
dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/vite-8.2.1
Closed

dependabot[bot] wants to merge 2 commits into
mainfrom
dependabot/npm_and_yarn/vite-8.2.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 13, 2026

Copy link
Copy Markdown
Contributor

Bumps vite from 7.3.6 to 8.2.1.

Release notes

Sourced from vite's releases.

plugin-legacy@8.2.1

Please refer to CHANGELOG.md for details.

v8.2.1

Please refer to CHANGELOG.md for details.

create-vite@8.2.0

Please refer to CHANGELOG.md for details.

plugin-legacy@8.2.0

Please refer to CHANGELOG.md for details.

v8.2.0

Please refer to CHANGELOG.md for details.

v8.2.0-beta.0

Please refer to CHANGELOG.md for details.

v8.1.5

Please refer to CHANGELOG.md for details.

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.

... (truncated)

Changelog

Sourced from vite's changelog.

8.2.1 (2026-08-06)

Bug Fixes

  • build: make client chunkImportMap work with sharedPlugins: true (#23184) (15f0307)
  • bundled-dev: inject client script tag before chunk scripts (#23161) (eac0cc8)
  • css: don't re-run lightningcss visitor during minify (fix #23146) (#23147) (de041a7)
  • deps: update all non-major dependencies (#23136) (14454fd)
  • deps: update rolldown-related dependencies (#23070) (7ac6f7f)
  • don't mutate the user config when resolving the lib entry from the top-level input (#23135) (b4bf596)
  • handle shebang ending with uncommon line terminators (#23038) (17f7b2f)
  • server: use a random port when port is 0 (#23158) (fddf4ea)

Performance Improvements

Documentation

  • build: fix incomplete @default for build.minify (#23177) (ef02435)

Miscellaneous Chores

  • deps: update dependency rolldown-plugin-dts to ^0.28.0 (#23137) (4adc1e7)
  • deps: update dependency strip-literal to v4 (#23140) (9db65ce)

Code Refactoring

  • bundled-dev: avoid injecting server values in the bundle (#22967) (23b8a08)
  • bundled-dev: remove rolldown lazy stub module workaround (#23129) (e72036e)

Tests

8.2.0 (2026-07-30)

Features

  • add input to server.fs.allow (#23035) (95a3cda)
  • bundled-dev: reload once after rebuild instead of via the fallback page (#23106) (b24381d)
  • bundled-dev: support worker file update accepted by HMR (#23068) (0d04351)
  • config: include column in config incompatibility location (#23064) (8a24572)
  • dev: resolve interface name for explicit host in network URLs (#22965) (3ac77d9)

Bug Fixes

  • bundledDev: print build errors to the terminal when an HMR update fails (#23024) (41c4658)
  • deps: update all non-major dependencies (#23069) (4c07b74)
  • hmr: preserve environment snapshot during server restart (#22992) (b1186c3)
  • importAnalysis: interop imports injected into optimized dep files by plugins (#23029) (8c2a87d)

... (truncated)

Commits
  • 4216158 release: v8.2.1
  • fddf4ea fix(server): use a random port when port is 0 (#23158)
  • de041a7 fix(css): don't re-run lightningcss visitor during minify (fix #23146) (#23147)
  • 15f0307 fix(build): make client chunkImportMap work with sharedPlugins: true (#23184)
  • c2155fe test(bundled-dev): enable sourcemap playgrounds (#23080)
  • ef02435 docs(build): fix incomplete @default for build.minify (#23177)
  • eac0cc8 fix(bundled-dev): inject client script tag before chunk scripts (#23161)
  • 23b8a08 refactor(bundled-dev): avoid injecting server values in the bundle (#22967)
  • e72036e refactor(bundled-dev): remove rolldown lazy stub module workaround (#23129)
  • 14454fd fix(deps): update all non-major dependencies (#23136)
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Aug 13, 2026
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 7.3.6 to 8.2.1.
- [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.2.1/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.2.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/vite-8.2.1 branch from 7481a6a to c7f2262 Compare August 14, 2026 19:04
@eneskirca

Copy link
Copy Markdown
Owner

Do not merge — hold for electron-vite@6.0.0 stable

I took this one seriously because vite 8 is a bundler swap, and it turned out to be the most dangerous PR in the queue. Details, since the CI failure is misleading about why.

What CI is actually failing on

npm ci dies in 10 seconds with ERESOLVE, reporting @vitejs/plugin-react@4.7.0 (peer ^4.2 || ^5 || ^6 || ^7). That is real but it is not the blocker — npm bails before it reaches the one that matters:

electron-vite@5.0.0 declares vite: "^5.0.0 || ^6.0.0 || ^7.0.0", and 5.0.0 is the latest stable (published 2025-12-07). Only 6.0.0-beta.0/beta.1 accept ^8.

Why forcing past it would be worse than leaving it red

I installed with --legacy-peer-deps to see what vite 8 does with our current electron-vite. The build succeeds — and silently produces a broken main bundle. Vite 8 is rolldown-based, and under rolldown externalizeDepsPlugin() from electron-vite 5 stops working. Only the two entries hardcoded in electron.vite.config.ts stay external:

dep vite 7 (baseline) vite 8 + electron-vite 5
electron external external (hardcoded)
node-pty external external (hardcoded)
electron-updater external inlined
ws external inlined
tweetnacl external inlined
smart-whisper external inlined into a new out/main/chunks/

out/main/index.js goes 1,032,116 → 1,954,353 bytes (+89%), 210 → 390 modules.

That is a runtime break, not a size regression. smart-whisper and node-pty are our two asarUnpack / electron-rebuild native modules — bundling smart-whisper's JS breaks its .node binding resolution inside asar — and electron-updater inlined into asar breaks its app-update.yml resolution. A "just add --legacy-peer-deps to CI" fix would have produced a green build that ships a broken auto-updater and broken dictation. Worth remembering the next time a dependency bump only fails at install.

The combination that does work

I built vite 8.2.1 + electron-vite@6.0.0-beta.1 + @vitejs/plugin-react@6.0.5 locally:

  • installs with no --legacy-peer-deps
  • npm run typecheck passes
  • npm run build passes with zero warnings, 211 modules, no stray chunks/ dir, and the externals list is exactly the baseline set again — electron-vite 6 fixes the externalization bug
  • full npx vitest run matches the baseline failure list exactly; zero regressions from vite 8 or vitest-on-vite-8

Output changes, all benign: out/main/index.js +21.5% (rolldown CJS interop overhead), renderer total −7.4% (ts.worker −14% from the oxc minifier). Chunk hashes all change; I found nothing hardcoding them.

electron.vite.config.ts itself needs no changes — rolldown accepted rollupOptions.external including the /^node-pty/ RegExp. Only two soft deprecations, both from the React plugin (esbuildoxc, optimizeDeps.rollupOptionsrolldownOptions).

Recommendation

Hold until electron-vite@6.0.0 stable ships. At that point this is a verified 3-line package.json change (vite ^8, electron-vite ^6, @vitejs/plugin-react ^6). Leaving the PR open as a tracker is fine; merging it in any form today is not.

@dependabot @github

dependabot Bot commented on behalf of github Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

A newer version of vite exists, but since this PR has been edited by someone other than Dependabot I haven't updated it. You'll get a PR for the updated version as normal once this PR is merged.

@eneskirca

Copy link
Copy Markdown
Owner

Thanks — holding on Vite 8 for now. Our electron-vite 5 peer range is Vite ≤7 (Vite 8 support only lands in electron-vite 6, currently 6.0.0-beta), and @vitejs/plugin-react 4.x is also ≤7. Forced through, typecheck/test/build/dev all pass (only deprecation warnings), so the migration itself looks smooth — but living outside the peer range isn't worth it. This will come back as a deliberate three-way bump (Vite 8 + electron-vite 6 + plugin-react ≥6) once electron-vite 6 is stable. Closing so it doesn't sit stale; Dependabot will re-open when a newer Vite 8 patch appears.

@eneskirca eneskirca closed this Aug 30, 2026
@dependabot @github

dependabot Bot commented on behalf of github Aug 30, 2026

Copy link
Copy Markdown
Contributor Author

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot
dependabot Bot deleted the dependabot/npm_and_yarn/vite-8.2.1 branch August 30, 2026 11:13
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant