Closed loilo closed 7 years ago
Squashing the minified Ace Editor failed.
Butternut did not handle the following minimal situation correctly:
if ( any_condition ) switch ( any_value ) { case '': } else { do_something() }
This generates the following output:
if(any_condition)switch(any_value){case '':};else do_something()
The problem is, that the semi-colon after the switch block is in fact invalid syntax.
switch
For reference: UglifyJS just does not insert the semi-colon, that's it.
Thanks — this was fixed by https://github.com/Rich-Harris/butternut/commit/0fdfa3fb42298c9edc6be601cdc166a0ccb12efd , release soon
Squashing the minified Ace Editor failed.
Butternut did not handle the following minimal situation correctly:
This generates the following output:
The problem is, that the semi-colon after the
switch
block is in fact invalid syntax.For reference: UglifyJS just does not insert the semi-colon, that's it.