-
-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Description
Describe the issue
After upgrading our project to Vite ^7.2.2 we enabled the new future: 'warn' option in defineConfig to track upcoming breaking changes. Starting the dev server shows multiple warnings coming from @vitejs/plugin-vue2:
server.warmupRequestis replaced withthis.environment.warmupRequest.- Plugin hook
options.ssris replaced withthis.environment.config.consumer === 'server'. - Plugin hook
handleHotUpdate()is replaced withhotUpdate().
Each warning links to the Vite documentation detailing the new Environment API changes.
Reproduction
- Create a Vue 2.7 project (e.g. via
create-vue+ downgrade to Vue 2). - Install Vite
^7.2.2and@vitejs/[email protected]. - In
vite.config.jsaddfuture: 'warn'. - Run
pnpm run dev(orvite dev). - Observe the future warnings in the terminal.
Our actual project is a Vue 2.7 + Ant Design Vue admin dashboard, but the reproduction above should be enough.
Expected behavior
@vitejs/plugin-vue2 should migrate to the new Environment-aware hooks (hotUpdate, this.environment.*, etc.) so that enabling future: 'warn' emits no warnings.
Additional context
- Vite:
^7.2.2 - @vitejs/plugin-vue2:
2.3.4 - Node:
24.11.0 - Package manager:
pnpm 10.20.0
Thanks!

Metadata
Metadata
Assignees
Labels
No labels