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
In lib mode, replacing process.env is ignored by default, a behavior introduced in #8090 . This inconsistency with the default build behavior does not appear to be documented. Additionally, the EnvironmentOptions.keepProcessEnv option does not control this behavior.
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
In lib mode, replacing
process.env
is ignored by default, a behavior introduced in #8090 . This inconsistency with the default build behavior does not appear to be documented. Additionally, theEnvironmentOptions.keepProcessEnv
option does not control this behavior.Reproduction
https://stackblitz.com/edit/vitejs-vite-9tea6xj7
Steps to reproduce
No response
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: