Closed loilo closed 7 years ago
From trying to squash docxtemplater.
Butternut does not compensate for removed braces with a semi-colon inside switch statements.
switch
Input:
switch ( any_value ) { case 1: if ( any_condition ) { any_fn_1() }case 2: break }
Output Butternut:
switch(any_value){case 1:any_condition&&any_fn_1()case 2:break}
Output UglifyJS:
switch(any_value){case 1:any_condition&&any_fn_1();case 2:}
From trying to squash docxtemplater.
Butternut does not compensate for removed braces with a semi-colon inside
switch
statements.Input:
Output Butternut:
Output UglifyJS: