-
Notifications
You must be signed in to change notification settings - Fork 6
chore: upgrade Vite v6 → v7 (breaking change) #170
Copy link
Copy link
Closed
Labels
Description
Overview
Upgrade vite from v6.x to v7.x:
vite:^6.0.0→^7.x
Also check compatibility of vite-plugin-imagemin and @sveltejs/vite-plugin-svelte with Vite v7.
Breaking Changes in v7
- Requires Node.js 20+
build.targetdefault changed- Some plugin API changes
import.meta.envtype changes
Required Work
1. Update package
npm install vite@^72. Check plugin compatibility
vite-plugin-imagemin@^0.6.1— verify Vite v7 support@sveltejs/vite-plugin-svelte— ensure compatible version is installed
3. Update vite.config.ts if needed
Review for any deprecated options.
4. Testing Checklist
-
npm run devworks -
npm run buildcompletes successfully - Image optimisation (imagemin) works
- HMR works in dev mode
- Production preview works
Resources
Priority
Low — Vite v6 is still actively supported.
Part of
Epic: Major dependency upgrades tracking issue
Reactions are currently unavailable