Skip to content

chore: upgrade Vite v6 → v7 and @sveltejs/vite-plugin-svelte v5 → v6#181

Merged
josecelano merged 1 commit intodevelopfrom
chore/upgrade-vite-v7
Feb 26, 2026
Merged

chore: upgrade Vite v6 → v7 and @sveltejs/vite-plugin-svelte v5 → v6#181
josecelano merged 1 commit intodevelopfrom
chore/upgrade-vite-v7

Conversation

@josecelano
Copy link
Member

Overview

Upgrades Vite and the Svelte Vite plugin together (vite-plugin-svelte v6 requires Vite ^6.3.0 || ^7.0.0).

Part of epic #174.

Closes #170
Closes #173

Package Changes

Package From To
vite ^6.4.1 ^7.3.1
@sveltejs/vite-plugin-svelte ^5.1.1 ^6.2.4

Vite v7 Breaking Changes — Assessment

Breaking Change Impact
Node.js 18 dropped (requires 20.19+/22.12+) ✅ None — running Node.js 22
Default build.targetbaseline-widely-available ✅ None — aligns with Tailwind v4 which already targets modern browsers
Sass legacy API removed ✅ None — vite.config.ts has no css.preprocessorOptions for Sass
splitVendorChunkPlugin removed ✅ None — not used
Advanced API removals (proxySsrExternalModules, deprecated types, etc.) ✅ None — not used

No changes to vite.config.ts were needed.

Testing Checklist

  • svelte-check: 0 errors, 0 warnings
  • npm run build: success
  • npm run lint: success
  • Pre-commit hooks pass
  • npm run dev + HMR works in browser
  • Production preview works

Upgrades:
- vite: ^6.4.1 → ^7.3.1
- @sveltejs/vite-plugin-svelte: ^5.1.1 → ^6.2.4

Both packages are upgraded together since vite-plugin-svelte v6 requires
Vite ^6.3.0 || ^7.0.0.

Breaking changes in Vite v7 that were assessed:
- Node.js 18 dropped (we use Node 22 — no impact)
- Default browser target updated to baseline-widely-available (aligns well
  with Tailwind v4 which also targets modern browsers)
- Sass legacy API removed — no impact, vite.config.ts has no
  css.preprocessorOptions for sass/scss
- splitVendorChunkPlugin removed — not used in this project
- All other advanced API removals are not used in this project

No changes to vite.config.ts were needed.

All checks pass:
- svelte-check: 0 errors, 0 warnings
- build: success
- lint: success (Prettier + ESLint)

Closes #170
Closes #173
Part of epic #174
@josecelano josecelano self-assigned this Feb 26, 2026
@josecelano
Copy link
Member Author

ACK 79024d5

@josecelano josecelano merged commit f153dfd into develop Feb 26, 2026
1 check passed
@josecelano josecelano deleted the chore/upgrade-vite-v7 branch February 26, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: upgrade @sveltejs/vite-plugin-svelte v5 → v6 (breaking change) chore: upgrade Vite v6 → v7 (breaking change)

1 participant