Prompt Buddy logoPrompt Buddy

vite · Vite Docs

Migration from v7 | Vite (main branch)

Provides a step-by-step guide for upgrading projects from Vite version 7 to the latest version, including breaking changes and configuration updates.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Migration from v7 | Vite (main branch)

Provides a step-by-step guide for upgrading projects from Vite version 7 to the latest version, including breaking changes and configuration updates.

When To Use

Use when upgrading a project from Vite v7 to a newer version to ensure breaking changes are addressed and configurations are updated correctly.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/main-vite-migration-from-v7-branch-workflow-guide.mdA guide detailing the breaking changes and migration steps required when upgrading from Vite version 7, including browser target changes and Rolldown integration.Questions about a guide detailing the breaking changes and migration steps required when upgrading from Vite version 7, including bro...
examples/main-vite-migration-from-v7-branch-vite-v7-to-v8-migration-guide.textA text-based guide detailing the breaking changes and dependency updates required when migrating from Vite version 7 to version 8.Exact payloads, commands, or snippets shown in A text-based guide detailing the breaking changes and dependency updates required when migrating from Vite version 7...
examples/main-vite-migration-from-v7-branch-vite-migration-v7-plugin-configresolv.textA code snippet demonstrating how to access optimizeDeps.rolldownOptions within the configResolved hook during a Vite v7 migration.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to access optimizeDeps.rolldownOptions within the configResolved hook during a Vite...
examples/main-vite-migration-from-v7-branch-vite-migration-v7-plugin-configresolv-2.textA code example demonstrating the use of the configResolved hook within a Vite plugin during a version 7 migration.Exact payloads, commands, or snippets shown in A code example demonstrating the use of the configResolved hook within a Vite plugin during a version 7 migration.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-dependency-install-.textShell commands for installing required dependencies for migrating from Vite v7 to the main branch.Exact payloads, commands, or snippets shown in Shell commands for installing required dependencies for migrating from Vite v7 to the main branch.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-dependency-installa.textA shell command to install required Babel plugins and Rolldown plugins for migrating to Vite v7.Exact payloads, commands, or snippets shown in A shell command to install required Babel plugins and Rolldown plugins for migrating to Vite v7.
examples/main-vite-migration-from-v7-branch-vite-migration-v7-dependency-installa.textShell commands for installing required dependencies for migrating from Vite v7 using pnpm.Exact payloads, commands, or snippets shown in Shell commands for installing required dependencies for migrating from Vite v7 using pnpm.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-dependency-installa-2.textA list of bun commands required to install necessary dependencies for migrating from Vite v7.Exact payloads, commands, or snippets shown in A list of bun commands required to install necessary dependencies for migrating from Vite v7.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-deno-dependency-ins.textA command line instruction for adding Rolldown Babel and Babel decorator plugins using Deno during a Vite v7 migration.Exact payloads, commands, or snippets shown in A command line instruction for adding Rolldown Babel and Babel decorator plugins using Deno during a Vite v7 migration.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-decorator-preset-co.textA vite configuration example demonstrating how to use a decorator preset with babel and rolldown during a v7 migration.Exact payloads, commands, or snippets shown in A vite configuration example demonstrating how to use a decorator preset with babel and rolldown during a v7 migration.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-swc-installation-co.textThe shell command to install @rollup/plugin-swc and @swc/core for migrating to Vite v7.Exact payloads, commands, or snippets shown in The shell command to install @rollup/plugin-swc and @swc/core for migrating to Vite v7.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-swc-installation-co-2.textThe shell command to install @rollup/plugin-swc and @swc/core as development dependencies for migrating to Vite v7.Exact payloads, commands, or snippets shown in The shell command to install @rollup/plugin-swc and @swc/core as development dependencies for migrating to Vite v7.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-swc-plugin-installa.textA shell command to install @rollup/plugin-swc and @swc/core as part of the Vite v7 migration process.Exact payloads, commands, or snippets shown in A shell command to install @rollup/plugin-swc and @swc/core as part of the Vite v7 migration process.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-swc-plugin-installa-2.textA command line instruction to install the @rollup/plugin-swc and @swc/core dependencies using bun for Vite v7 migration.Exact payloads, commands, or snippets shown in A command line instruction to install the @rollup/plugin-swc and @swc/core dependencies using bun for Vite v7 migration.
examples/main-vite-migration-from-v7-branch-vite-migration-v7-deno-swc-plugin-ins.textA command line instruction for adding the Rollup SWC plugin and SWC core using Deno for Vite v7 migration.Exact payloads, commands, or snippets shown in A command line instruction for adding the Rollup SWC plugin and SWC core using Deno for Vite v7 migration.
examples/main-vite-migration-from-v7-branch-vite-v7-migration-defineconfig-withfi.textA configuration example demonstrating the use of defineConfig and withFilter for plugin transformation during a Vite v7 migration.Exact payloads, commands, or snippets shown in A configuration example demonstrating the use of defineConfig and withFilter for plugin transformation during a Vite...
examples/main-vite-migration-from-v7-branch-vite-migration-v7-esm-external-requir.textA configuration example demonstrating the use of the esmExternalRequirePlugin to handle external modules during a Vite v7 migration.Exact payloads, commands, or snippets shown in A configuration example demonstrating the use of the esmExternalRequirePlugin to handle external modules during a Vit...
examples/main-vite-migration-from-v7-branch-vite-migration-v7-error-handling.textA code snippet demonstrating how to catch and iterate through error objects during a Vite build process when migrating from version 7.Exact payloads, commands, or snippets shown in A code snippet demonstrating how to catch and iterate through error objects during a Vite build process when migratin...
examples/main-vite-migration-from-v7-branch-vite-migration-v7-plugin-loader.textA JavaScript code snippet demonstrating how to update a custom plugin loader during the migration from Vite version 7.Exact payloads, commands, or snippets shown in A JavaScript code snippet demonstrating how to update a custom plugin loader during the migration from Vite version 7.

What This Skill Covers

  • Are you an LLM? You can read better optimized documentation at /guide/migration.md for this page in Markdown format
  • Main sections: Default Browser Target Change NRV ​, Rolldown ​, Gradual Migration ​, Dependency Optimizer Now Uses Rolldown ​, JavaScript Transforms by Oxc ​.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://main.vite.dev/guide/migration