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 https://github.com/vuejs/core instead.
Describe the bug
I can assign
process.env.NODE_ENV
, but when accessing it it gets statically replaced.transformed to
This is probably because of the
define
plugin:https://github.com/vitejs/vite/blob/6d4ee18e0c45e7c1fedd36c24b631a8f97f40c0f/packages/vite/src/node/plugins/define.ts
Reproduction
vitest-dev/vitest#789
System Info
Used Package Manager
pnpm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: