vite 3.2 ignores env variables from cli #10676
Labels
p4-important
Violate documented behavior or significantly improves performance (priority)
regression
The issue only appears after a new release
Describe the bug
Env variables that are defined in a cli call (e.g.
VITE_TITLE='title from cli' vite
) are ignored since Vite 3.2.0.Reproduction
https://stackblitz.com/edit/vitejs-vite-rr4qtt?file=package.json
Steps to reproduce
Expected behaviour: the env variable is defined/overriden by cli - as it is common in most cli tools.
Current behaviour: Since Vite v3.2.0 the cli env variables are ignored.
System Info
System: OS: macOS 13.0 CPU: (16) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz Memory: 599.27 MB / 32.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.11.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.19.2 - /usr/local/bin/npm Browsers: Chrome: 106.0.5249.119 Firefox: 106.0.2 Safari: 16.1 npmPackages: vite: 3.2.0 => 3.2.0
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: