OptionaldropOptionaldropRemove debugger; statements.
OptionaldropSet of label names to drop from the code.
Labeled statements matching these names will be removed during minification.
OptionaljoinJoin consecutive var, let and const statements.
OptionalkeepKeep function / class names.
OptionalmaxLimit the maximum number of iterations for debugging purpose.
OptionalsequencesJoin consecutive simple statements using the comma operator.
a; b -> a, b
OptionaltargetSet desired EcmaScript standard version for output.
Set esnext to enable all target highering.
Example:
'es2015'['es2020', 'chrome58', 'edge16', 'firefox57', 'node12', 'safari11']OptionaltreeshakeTreeshake options.
OptionalunusedPass true to drop unreferenced functions and variables.
Simple direct variable assignments do not count as references unless set to keep_assign.
Pass true to discard calls to
console.*.