isPreview
is always false
#15694
Labels
contribution welcome
p4-important
Violate documented behavior or significantly improves performance (priority)
Describe the bug
Both
vite dev
andvite preview
passesisPreview: false
.It was implemented to distinguish these two, and it seems to be broken.
Reproduction
https://stackblitz.com/edit/vitejs-vite-qgb5dt?file=vite.config.js
Steps to reproduce
No response
System 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.11 => 5.0.12
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: