npm / electron-vite
electron-vite
What changed in electron-vite 3 to 6, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-28.
10 breaking1 security2 deprecations4 new APIs and options1 performance3 behavior and defaults5 tooling14 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initelectron-vite 616 changes
Breaking changes 1
The dev process exits non-zero when Electron is killed by a signal.
New APIs and options 2
Supports
rolldownOptionsas part of Vite 8 and Rolldown integration.Supports
rollupOptionsalongside Vite 8's Rolldown integration.
Performance 1
Loads Babel only when needed, reducing build overhead.
Behavior and default changes 2
Processes all code through a single compiler session and compiles through Electron processes.
The
chunkAliasoption now supports regular expressions.
Tooling 1
Adds Vite 8 support while retaining compatibility with Vite 6 and 7.
Fixes and other changes 9
Includes fixes for asset paths in the development workflow.
Fixed obtaining the bytecode build session in Node.js 24.
Includes fixes for caching in the development workflow.
Improves Electron process shutdown during development.
Includes fixes for multi-entry builds.
Fixed the requirement that the TypeScript compiler outDir be located inside the Rollup dir option.
Oxc is also disabled on Vite 8.
Compatibility with rollupOptions and rolldownOptions was fixed.
Improves signal handling during development.
electron-vite 517 changes
Breaking changes 6
Adds build.bytecode as a config option to replace bytecodePlugin.
Adds build.externalizeDeps as a config option to replace externalizeDepsPlugin.
Moves the isolateEntries options to the build option.
Removes the build compatibility target for Electron 18, 19, 20, and 21.
The Electron Vite config interfaces are restructured.
Nested config fields no longer support function resolution.
Security 1
Adds enhanced string protection.
Deprecations 2
Deprecates bytecodePlugin; build.bytecode is provided as its replacement.
Deprecates externalizeDepsPlugin; build.externalizeDeps is provided as its replacement.
New APIs and options 2
Adds an option for preload and renderer to build entries as standalone bundles.
Adds a reporter plugin for isolated builds.
Tooling 1
Updates the build compatibility target for Electron 39.
Fixes and other changes 5
Prevents duplicate asset emission.
Rewrites the build input instead of merging it.
Avoids duplicate chunk emission.
Normalizes the path of imported public asset chunks.
Adds support for watch mode.
electron-vite 45 changes
Breaking changes 3
The CJS build is removed.
The required Node.js version is now 20.19+ or 22.12+.
electron-vite updates to Vite 7, which may affect projects using Vite.
Tooling 2
A build compatibility target is added for Electron 36.
A build compatibility target is added for Electron 37.
electron-vite 32 changes
Behavior and default changes 1
Conditions are now resolved for preload.
Tooling 1
Build compatibility targets were added for Electron 32, 33, and 34.