unjs / std-env

Runtime Agnostic JS utils
MIT License
459 stars 25 forks source link

feat: check `MODE` variable for isDevelopment and isProduction flags #114

Open markflorkowski opened 8 months ago

markflorkowski commented 8 months ago

๐Ÿ”— Linked issue

Currently n/a, can open an issue as well if you want me to.

โ“ Type of change

๐Ÿ“š Description

Utilize the MODE environment variable to check if we are in development or production in addition to other checks from before.

The MODE environment variable is used in Vite to differentiate running in development or production.

๐Ÿ“ Checklist