---
title: "@vitejs/plugin-legacy 8.0.0 Breaking Changes on npm"
description: "What each @vitejs/plugin-legacy release removed, renamed or changed: 5 breaking changes in 3 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@vitejs/plugin-legacy
last_updated: 2026-12-04
---

# @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

Latest version `8.2.4`. [Source repository](https://github.com/vitejs/vite)

Its 6.0.0 release drops [Node.js 21](https://since.dev/calendar/nodejs/21.md). [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [7.0.0](#v-7-0-0) to [8.0.0](#v-8-0-0): 1 breaking change in 1 version.
- From [6.0.0](#v-6-0-0) to [8.0.0](#v-8-0-0): 4 breaking changes in 2 versions.

## @vitejs/plugin-legacy 8.0.0 breaking changes

@vitejs/plugin-legacy 8.0.0, released March 12, 2026: 1 breaking change.

- **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](https://github.com/vitejs/vite/commit/cc50822161f43ac60b932f2b4f63129bdb5590dc)

## @vitejs/plugin-legacy 7.0.0 breaking changes

@vitejs/plugin-legacy 7.0.0, released June 24, 2025: 3 breaking changes.

- **Removed**  

The CommonJS build was removed, so code that loads the plugin with require must switch to the ESM build. [github.com](https://github.com/vitejs/vite/commit/2b80243fada75378e80475028fdcc78f4432bd6f)
- **Removed**  

Node.js 18 is no longer supported, so users on Node.js 18 must upgrade their runtime. [github.com](https://github.com/vitejs/vite/commit/00b8a98f36376804437e1342265453915ae613de)
- **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](https://github.com/vitejs/vite/commit/a6d599718ee109798e8f552e317f175513d157e7)

## @vitejs/plugin-legacy 6.0.0 breaking changes

@vitejs/plugin-legacy 6.0.0, released November 26, 2024: 1 breaking change.

- **Removed**  

Node.js 21 is no longer in the package's supported version ranges. Use a supported Node.js version. [github.com](https://github.com/vitejs/vite/commit/a384d8fd39162190675abcfea31ba657383a3d03)

## Related packages

- [vite](https://since.dev/packages/npm/vite.md)
- [@vitejs/plugin-react](https://since.dev/packages/npm/@vitejs/plugin-react.md)
- [@vitejs/plugin-rsc](https://since.dev/packages/npm/@vitejs/plugin-rsc.md)
- [@vitejs/plugin-vue](https://since.dev/packages/npm/@vitejs/plugin-vue.md)
- [@vitejs/plugin-vue-jsx](https://since.dev/packages/npm/@vitejs/plugin-vue-jsx.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
