You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 19, 2026. It is now read-only.
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.
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!