@vitejs/plugin-legacy breaking changes
@vitejs/plugin-legacy 8.0.0 (March 12, 2026) is its newest release with breaking changes. The first: Raises the modern browser threshold to browsers that support import.meta.resolve in @vitejs/plugin-legacy 8.0.0. Every breaking API change we have recorded in @vitejs/plugin-legacy on npm: 5 breaking changes in 3 versions. Below, its 3 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 8.2.4. Source repository
Its 6.0.0 release drops Node.js 21. Node.js end of life dates.
- From 7.0.0 to 8.0.0: 1 breaking change in 1 version.
- From 6.0.0 to 8.0.0: 4 breaking changes in 2 versions.
@vitejs/plugin-legacy 8.0.0 breaking changes
- Behavior changed
Browsers without import.meta.resolve support now receive the legacy build instead of the modern one. Check that your target browsers still get the output you expect. github.com
@vitejs/plugin-legacy 7.0.0 breaking changes
- Removed
The CommonJS build was removed, so code that loads the plugin with require must switch to the ESM build. github.com - Removed
Node.js 18 is no longer supported, so users on Node.js 18 must upgrade their runtime. github.com - Behavior changed
The check that skipped legacy output when location.protocol was file: was removed for modern Android WebView, so the plugin now behaves differently there. github.com
@vitejs/plugin-legacy 6.0.0 breaking changes
- Removed
Node.js 21 is no longer in the package's supported version ranges. Use a supported Node.js version. github.com
Related packages
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.