Vite 7.0 drops Node.js 18, updates browser targets, and adds buildApp hook
Vite 7.0 introduces major changes to development environment requirements and compatibility targets. The new release raises the minimum Node.js version to 20.19 and 22.12, ending support for Node.js 18 now that this version has reached its end-of-life in April 2025. Developers must update their environments to continue using Vite 7 successfully.
In addition to Node.js requirements, Vite 7 changes the default browser target from modules to baseline-widely-available. This adjustment updates the minimum supported browser versions for builds: Chrome and Edge now start at version 107, Firefox at 104, and Safari at 16.0. Updating these targets helps ensure generated code is compatible with more widely available browser features.
Following these compatibility changes, Vite 7 introduces the buildApp hook, allowing plugin authors to coordinate building different environments during the build process. Plugin developers and advanced users may also note that experimental Environment API features from Vite 6 remain available for ecosystem testing and feedback. For testing workflows, Vite 7.0 is supported starting from Vitest 3.2, enabling users to run their test suites with the latest version.