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
When defining environment variables depending on the order would result in a different build, and hence different hashes. Example:
.env
contains:vite build
results:.env
contains:vite build
results:Specifically the env variable replacements have changed
console.log({VITE_2:"2",VITE_1:"1",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_3)
Reproduction
https://github.com/mcchrish/vite-env-test
Steps to reproduce
.env
with content describe above.npm run build
, notice the file hashes..env
with a different order of env as describe above.npm run build
, and compare the file hashes from the previous buildSystem Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: