Since it is a preset, there won't be any options passed to the minifier.
for example,
!== to !=, >= to <etc...
How to support these as options to be passed to the minifier - when used as a CLI or a Preset?
we could land https://github.com/babel/babel/pull/3331 before that (options for presets)?
Yay! It's merged now - https://github.com/babel/babel/pull/3331. We could start discussion about the list of options.
mangle : bool | {
keepFnames: bool, // overrides keepFnames in root
eval: bool,
blacklist: [string]
},
deadcode: bool | {
keepFnames: bool, // overrides keepFnames in root
keepFargs: bool,
},
keepFnames: bool, // passed to DCE and Mangler
unsafe: bool | {
flipComparisons,
typeConstructors,
simplifyComparisons,
guardedExpr,
},
evaluate: bool, // constant folding,
simplify: bool, // simplify, undef to void,
booleans: bool,
properties: bool,
I would much appreciate a keepClassNames option
Most helpful comment
Yay! It's merged now - https://github.com/babel/babel/pull/3331. We could start discussion about the list of options.