NODE_ENV
environment variable is undefined
in svelte.config.js
during during development (npm run dev
)
#5456
Labels
Describe the bug
When used in
svelte.config.js
,process.env.NODE_ENV
isundefined
during development (npm run dev
).It is expected to be
development
.Reproduction
Reproduction on StackBlitz.
Please find the simple
console
statement that outputs theprocess.env.NODE_ENV
value.Logs
No response
System Info
Severity
annoyance
Additional Information
AFAIK, this bug appeared after the addition of the
vite.config.js
file.The text was updated successfully, but these errors were encountered: