Rich-Harris / butternut

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

blocks are skipped #162

Closed kzc closed 6 years ago

kzc commented 7 years ago
$ bin/squash -v
Butternut version 0.4.6

$ echo 'foo(); { bar(); } baz();' | bin/squash
foo(),baz()

$ echo 'foo(); { bar(); } baz();' | node_modules/uglify-es/bin/uglifyjs -mc
foo(),bar(),baz();

Found while looking at the vue.js results:

vue.js (253 kB) without sourcemap:
  ✓ babili             :   104 kB /  37.3 kB in 7.8s
  ✓ butternut          :  90.4 kB /  33.2 kB in 582ms
  ✓ closure            :  96.4 kB /  36.1 kB in 9.3s
  ✓ uglify             :  95.3 kB /  35.5 kB in 1.1s
  ✓ uglify-mangle-only :   104 kB /  36.5 kB in 360ms
  ✓ uglify-es          :  95.3 kB /  35.5 kB in 1.4s
nifgraup commented 7 years ago

regressed in 67a7d472833d0a7eeaf4b630501d0c3a1019f8b3

kzc commented 6 years ago

Closing issue as project doesn't appear to be maintained.