毫秒镜像
木雷坞 · MLIEV
December 7, 2025

electron-vite 5.0 is officially released today! This milestone version introduces multiple new features, optimizes core functionality, and thoroughly reorganizes the documentation, providing developers with a smoother and more efficient development experience.
Isolated Build is designed to address common challenges in multi-entry application development, such as outputting a single file, efficient tree-shaking to avoid unnecessary module imports, and reducing excessive chunk generation.
electron-vite 5.0 introduces the build.isolatedEntries option, which enables automatic isolation of multiple entries and intelligent handling of shared chunks and asset outputs.
Use Cases:
?modulePath have isolated builds enabled by default, with no configuration required.When there are many entry points in a project, enabling Isolated Build will increase build times, but this impact is typically within an acceptable range. The trade-off is well worth it: Isolated Build significantly improves application performance, enhances security, reduces development complexity, and increases developer productivity.
In electron-vite 5.0, a brand-new Babel-based string protection plugin has been introduced for bytecode compilation, featuring the following protection enhancements:
externalizeDepsPlugin is deprecated, use build.externalizeDeps config option instead. In electron-vite 5.0, this behavior is enabled by default.
bytecodePlugin is deprecated, use build.bytecode config option instead.
For most projects, the update to electron-vite 5 should be straight forward. But we advise reviewing the detailed Migration Guide before upgrading.