Vite 8.4.0
Vite 8.4.0 is out. Released November 26, 2026, roughly two weeks after the first beta. A tooling release: no config rewrites, no API removals.
Headline changes: plugin errors now name the plugin that threw them, environments get a safe module API, and the dev server gains a stricter filesystem mode.
What Changed
- Plugin names in errors. Hook failures during dev and build now include the offending plugin's name, including module hooks, so a stack trace no longer leaves you guessing which of fourteen plugins broke the chain.
- Safe modules per environment. New
environment.addSafeModuleAPI, withsafeModulePathsnow tracked separately for each environment. Vite also registers more references to those modules, including references found in HTML. server.fs.strict: 'extended'. A new value for the filesystem strictness setting. It adds reference checks beyond the existing behavior, covering files reachable from HTML entries and other safe modules.- Worker chunks in the manifest. Builds now include worker output in
manifest.json, which matters for custom SSR and preload logic that walks the manifest by hand. - Config loader stabilized.
--configLoaderis no longer experimental, and--configLoader=runneris deprecated. - CSS sourcemap option moved.
css.devSourcemapgives way todev.sourcemap.css.
Fixes Worth Noting
- Server shutdown on failed start. A dev server that failed during startup now closes instead of leaving a half-initialized environment holding ports and watchers (#23965).
- CSS duplication with
cssCodeSplit: false. Inlined common chunks no longer emit the same CSS twice. - HTML entry side effects. An entry script's side effects are kept when another importer loads it first, closing an ordering bug in multi-entry pages.
- Optimizer lockfile hashing. In-place edits to patched dependency files are now detected, so the dep optimizer invalidates when it should instead of serving a stale prebundle.
- tsconfig scanning. The optimizer respects the top-level TypeScript option when scanning and bundling dependencies.
- Import escaping. Import specifiers and imported names in the CommonJS transform are escaped properly, which hardens generated code against odd characters in module IDs.
Performance
- Preload rewrites now shift existing source maps instead of re-tracing them, cutting build time in projects that generate maps.
- Import analysis hooks are skipped for chunks a build did not touch.
- The terser plugin is skipped entirely when terser is not configured, which removes a startup cost from every esbuild-only build.
Also Shipped
create-vite 9.4.0 landed the same morning with a devtools option in the scaffolder, support for the Vite+ (vp) package manager, and Solid 2 in the Solid templates.
Upgrade
npm install -D [email protected], or the equivalent for your package manager. Then check two things: any config still using css.devSourcemap should move to dev.sourcemap.css, and any CI flag passing --configLoader=runner should be dropped. If you rely on the manifest to locate worker assets, note that it now lists them, so permissive consumers may start copying files they previously ignored.