Rich-Harris / butternut

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

New expressions aren't minified #16

Closed Rich-Harris closed 7 years ago

Rich-Harris commented 7 years ago

Repro — whitespace inside the parentheses isn't removed as it is with call expressions:

// input
var foo1 = new Foo(
  1 + 1
);

var foo2 = Foo(2 + 2)

// expected
var foo1=new Foo(2),foo2=Foo(4)

// actual
var foo1=new Foo(
  2
),foo2=Foo(4)