Open WagnerExpansiva opened 6 years ago
I got the same issue with node 11
Same issue as described by @WagnerExpansiva in #382
This problem is still occurring in 2023. Did anyone ever find a fix for it? This only started happening when we changed our tsconfig.json file to "target": "ES6"
, so TypeScript started using let
and const
throughout our code, but now minification is broken because we are using this plugin. Are we going to have to switch minification plugins entirely?
Installed product versions
Description
When using let alone in scope, will get this error (in Chrome) "Uncaught SyntaxError: Lexical declaration cannot appear in a single-statement context"
For example, this code
is being minified as:
so , try to past the above code in chrome / console, and will get the error
Expected behavior