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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/main-vite-migration-from-v7-branch-workflow-guide.md | A 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.text | A 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.text | A 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.text | A 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-.text | Shell 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.text | A 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.text | Shell 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.text | A 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.text | A 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.text | A 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.text | The 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.text | The 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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.text | A 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - Do not add behavior or configuration that is not present in the attached source files.
Canonical source: https://main.vite.dev/guide/migration