babel / minify

:scissors: An ES6+ aware minifier based on the Babel toolchain (beta)
https://babeljs.io/repl
MIT License
4.39k stars 225 forks source link

`if (false) { foo; }` will throw an error #1050

Closed moseszhou closed 1 month ago

moseszhou commented 1 month ago

babel-plugin-minify-dead-code-elimination

if (false) { foo; } will throw an error