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
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Describe the bug
Imagine the following plugin:
This log will only show when running
npm run build
and not when runningnpm run dev
. While in both cases the code in the hook will be executed.Reproduction
https://stackblitz.com/edit/vitejs-vite-ihlmcj?file=vite.config.js
Steps to reproduce
npm i
,npm run dev
=> No lognpm run build
=> Will logSystem Info
System: OS: Linux 5.0 undefined CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 0 Bytes / 0 Bytes Shell: 1.0 - /bin/jsh Binaries: Node: 18.18.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 10.2.3 - /usr/local/bin/npm pnpm: 8.14.0 - /usr/local/bin/pnpm npmPackages: vite: ^5.0.12 => 5.0.12
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: