electron-vite breaking changes
electron-vite 6.0.0 (October 14, 2026) is its newest release with breaking changes, 9 of them. The first: Vite updated to v8 in electron-vite 6.0.0. Every breaking API change we have recorded in electron-vite on npm: 32 breaking changes in 4 versions. Below, its 4 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 6.0.0, released October 14, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 5.0.0 to 6.0.0: 9 breaking changes in 1 version.
- From 2.0.0 to 6.0.0: 24 breaking changes in 3 versions.
electron-vite 6.0.0 breaking changes
- Behavior changed
The bundled Vite dependency was updated to v8, which can change build behavior for existing projects. github.com - Behavior changed
The @babel/* dependencies were downgraded to v7 because of Node requirements, which changes the Babel versions used. github.com - Behavior changed
The magic-string dependency was updated to v1, which may change string transformation behavior. github.com - Behavior changed
The @babel/* dependencies were updated to v8, changing the Babel version used by the build. github.com - Behavior changed
The esmShim now locates the last static import using this.parse, which can change the generated shim code. github.com - Behavior changed
The bytecode compiler is invoked a single time for all code instead of per build, which can change compiled output and build behavior. github.com - Behavior changed
The resolve config was simplified and user config is now isolated for sub-builds, which can change how configuration applies. github.com - Configuration changed
Build configuration is now compatible with both rollupOptions and rolldownOptions, changing how these options are read. github.com - Signature changed
BytecodeOptions.chunkAlias
Was chunkAlias?: string | string[]; now chunkAlias?: string | string[] | RegExp. npmjs.com
electron-vite 5.0.0 breaking changes
- Removed
ElectronViteConfig
ElectronViteConfig was removed in electron-vite 5.0.0 npmjs.com - Configuration changed
Function values in nested config fields are no longer resolved, so config that relies on them must be changed to plain values. github.com - Configuration changed
The config interfaces were reorganized, so config code written against the old structure may need updating. github.com - Signature changed
defineConfig
Was function defineConfig(config: ElectronViteConfig): ElectronViteConfig function defineConfig(config: Promise<ElectronViteConfig>): Promise<ElectronViteConfig>; now function defineConfig(config: ElectronViteConfigFnPromise)... npmjs.com - Signature changed
ElectronViteConfigExport
Was type ElectronViteConfigExport = ElectronViteConfig | Promise<ElectronViteConfig> | ElectronViteConfigFnObject | ElectronViteConfigFnPromise | ElectronViteConfigFn; now type ElectronViteConfigExport = UserConfig | Promise<UserConfig> |... npmjs.com - Signature changed
ElectronViteConfigFn
Was type ElectronViteConfigFn = (env: ConfigEnv) => ElectronViteConfig | Promise<ElectronViteConfig>; now type ElectronViteConfigFn = (env: ConfigEnv) => UserConfig | Promise<UserConfig>. npmjs.com - Signature changed
ElectronViteConfigFnObject
Was type ElectronViteConfigFnObject = (env: ConfigEnv) => ElectronViteConfig; now type ElectronViteConfigFnObject = (env: ConfigEnv) => UserConfig. npmjs.com - Signature changed
ElectronViteConfigFnPromise
Was type ElectronViteConfigFnPromise = (env: ConfigEnv) => Promise<ElectronViteConfig>; now type ElectronViteConfigFnPromise = (env: ConfigEnv) => Promise<UserConfig>. npmjs.com - Signature changed
UserConfig.main
Was main?: UserConfig$1 & {configFile?: string | false;}; now main?: MainViteConfig. npmjs.com - Signature changed
UserConfig.preload
Was preload?: UserConfig$1 & {configFile?: string | false;}; now preload?: PreloadViteConfig. npmjs.com
And 1 more in this version. Sign up to see every change
electron-vite 4.0.0 breaking changes
- Removed
The package no longer ships a CommonJS build and now uses Vite 7. Code that loads the CJS build or relies on Vite 6 behavior must be updated. github.com - Removed
splitVendorChunk
splitVendorChunk was removed in electron-vite 4.0.0 npmjs.com - Removed
splitVendorChunkPlugin
splitVendorChunkPlugin was removed in electron-vite 4.0.0 npmjs.com - Behavior changed
The minimum Node.js version is raised to 20.19 or 22.12 and later. Users on older Node.js versions must upgrade. github.com
electron-vite 2.0.0 breaking changes
- Signature changed
defineViteConfig
Was export {defineViteConfig} from "vite"; now export {defineConfig as defineViteConfig} from "vite". npmjs.com - Signature changed
InlineConfig
Was type InlineConfig = Omit<UserConfig_2, 'base'> & {configFile?: string | false; envFile?: false; ignoreConfigWarning?: boolean;}; now type InlineConfig = Omit<UserConfig$1, 'base'> & {configFile?: string | false; envFile?: false... npmjs.com - Signature changed
UserConfig.main
Was main?: UserConfig_2 & {configFile?: string | false;}; now main?: UserConfig$1 & {configFile?: string | false;}. npmjs.com - Signature changed
UserConfig.preload
Was preload?: UserConfig_2 & {configFile?: string | false;}; now preload?: UserConfig$1 & {configFile?: string | false;}. npmjs.com - Signature changed
UserConfig.renderer
Was renderer?: UserConfig_2 & {configFile?: string | false;}; now renderer?: UserConfig$1 & {configFile?: string | false;}. npmjs.com - Signature changed
UserConfigSchema.main
Was main?: UserConfigExport_2; now main?: UserConfigExport$1. npmjs.com - Signature changed
UserConfigSchema.preload
Was preload?: UserConfigExport_2; now preload?: UserConfigExport$1. npmjs.com - Signature changed
UserConfigSchema.renderer
Was renderer?: UserConfigExport_2; now renderer?: UserConfigExport$1. npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.