1
0
mirror of https://github.com/locomotivemtl/locomotive-boilerplate.git synced 2026-01-15 00:55:08 +08:00

Add documentation for esbuild process.env

This commit is contained in:
arnvvd
2022-10-05 16:39:25 -04:00
parent b1f5a00b8c
commit feb2241164
2 changed files with 11 additions and 2 deletions

View File

@@ -1,3 +1,12 @@
/**
* > When using the esBuild API, all `process.env.NODE_ENV` expressions
* > are automatically defined to `"production"` if all minification
* > options are enabled and `"development"` otherwise. This only happens
* > if `process`, `process.env`, and `process.env.NODE_ENV` are not already
* > defined. This substitution is necessary to avoid code crashing instantly
* > (since `process` is a Node API, not a web API).
* > — https://esbuild.github.io/api/#platform
*/
const env = process.env.NODE_ENV
export default config = Object.freeze({

File diff suppressed because one or more lines are too long