Repository navigation
Add define option - #312
Conversation
Same as Terser's `--define`
marvinhagemeister
left a comment
There was a problem hiding this comment.
Awesome, that's a really useful feature 👍
| globals = Object.assign(globals, parseMappingArgument(options.globals)); | ||
| } | ||
|
|
||
| const NODE_ENV = process.env.NODE_ENV || 'production'; |
There was a problem hiding this comment.
this is for libraries
There was a problem hiding this comment.
so I don't support having that as the default at this point in the "toolchain"
There was a problem hiding this comment.
That is a good point. NODE_ENV and process.env.NODE_ENV are probably best left undefined altogether by default.
There was a problem hiding this comment.
@ForsakenHarmony think it's better to not do inlining by default? I'm good with that.
|
Also apparently I'd managed to miss #233 when I opened this. I'm not sure which is better, though my guess is it's faster/cheaper to use Terser's |
|
Is there any plans for a release including this soon? 😄 |
Same thing over here :D |
|
yup |
|
Since |
Same as Terser's
--define: