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.warmupRequest is replaced with this.environment.warmupRequest.
- Plugin hook
options.ssr is replaced with this.environment.config.consumer === 'server'.
- Plugin hook
handleHotUpdate() is replaced with hotUpdate().
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.2 and @vitejs/plugin-vue2@2.3.4.
- In
vite.config.js add future: 'warn'.
- Run
pnpm run dev (or vite 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!

Describe the issue
After upgrading our project to Vite
^7.2.2we enabled the newfuture: 'warn'option indefineConfigto track upcoming breaking changes. Starting the dev server shows multiple warnings coming from@vitejs/plugin-vue2:server.warmupRequestis replaced withthis.environment.warmupRequest.options.ssris replaced withthis.environment.config.consumer === 'server'.handleHotUpdate()is replaced withhotUpdate().Each warning links to the Vite documentation detailing the new Environment API changes.
Reproduction
create-vue+ downgrade to Vue 2).^7.2.2and@vitejs/plugin-vue2@2.3.4.vite.config.jsaddfuture: 'warn'.pnpm run dev(orvite dev).Our actual project is a Vue 2.7 + Ant Design Vue admin dashboard, but the reproduction above should be enough.
Expected behavior
@vitejs/plugin-vue2should migrate to the new Environment-aware hooks (hotUpdate,this.environment.*, etc.) so that enablingfuture: 'warn'emits no warnings.Additional context
^7.2.22.3.424.11.0pnpm 10.20.0Thanks!