Skip to main content

Vite 8.1.4

Release Date: July 9, 2026

Vite 8.1.4 has been released — VoidZero shipped the latest patch update to the popular JavaScript build tool on July 9, 2026. This release focuses on bug fixes, dependency updates, and a notable switch to oxc as the default minifier for the legacy plugin.

What Changed in Vite 8.1.4

Arriving just one week after 8.1.3, this patch release is squarely in maintenance territory. The headline change is that the legacy plugin now prefers oxc as its minifier, addressing a long-standing GitHub issue. Several build-related bugs have been squashed, including a workaround for building on StackBlitz and a fix that keeps import.meta.url intact in preload functions.

Bug Fixes

  • Build: Added a workaround for building projects on StackBlitz
  • Build: Preserved import.meta.url in preload function output
  • HTML: Eliminated backtracking in import-only checks for better performance
  • Optimizer: Fixed a race condition where the optimizer would run for transform requests before initialization completed
  • SSR: Aligned the stack trace column number for named export function calls with Node.js behavior
  • CSS: Stripped pure CSS chunk imports when chunkImportMap is enabled

Dependencies and Housekeeping

The release updates all non-major dependencies and rolldown-related packages. postcss-modules has been bumped to v9, and the team removed the custom onLog function as part of ongoing build system cleanup. Documentation for server.cors default values was also corrected.

How to Upgrade

Vite 8.1.4 is available now via npm. Existing projects can upgrade by running npm update vite or by bumping the version in package.json. As a patch release under semver, no breaking changes are expected — though checking your lockfile after the update is always recommended.

What is New?

By continuing to use the site, you agree to the use of cookies.