Why: esbuild >= 0.16.0 forces that something passed via define is a string. This was introduced in v0.16.0, see section "Add additional validation of API parameters" of https://github.com/evanw/esbuild/releases/tag/v0.16.0.
How: 'process.env.NODE_ENV' is only set in define from now on if it is not undefined.
Checklist:
[x] Documentation
[ ] Tests
Unfortunately I could not reproduce it via the tests in the repository, even if I updated the devDependency esbuild...
closes #205
What: #205
Why:
esbuild
>= 0.16.0 forces that something passed viadefine
is a string. This was introduced in v0.16.0, see section "Add additional validation of API parameters" of https://github.com/evanw/esbuild/releases/tag/v0.16.0.How:
'process.env.NODE_ENV'
is only set indefine
from now on if it is notundefined
.Checklist: