Skip to content

chore: upgrade Vite v6 → v7 (breaking change) #170

@josecelano

Description

@josecelano

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.target default changed
  • Some plugin API changes
  • import.meta.env type changes

Required Work

1. Update package

npm install vite@^7

2. 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 dev works
  • npm run build completes 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions