Rich-Harris / butternut

The fast, future-friendly minifier
https://butternut.now.sh
MIT License
1.17k stars 17 forks source link

hoist vars out of removed blocks #80

Closed Rich-Harris closed 7 years ago

Rich-Harris commented 7 years ago

This addresses #51 — situations in which a variable is declared inside a block that gets removed, but is used outside the block. (In other words, idiotic code.) Not 100% happy with the implementation, but it works which is the most important thing — can always revisit the internals later.