You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(minifier): evaluate .concat calls that has subsequent method calls (#14074)
```js
x = ''.concat('a', ' ').concat('b').split(/[\\s\\n]+/)
```
was not compressed to
```js
x = 'a b'.split(/[\\s\\n]+/)
```
. This PR changes the code to allow that.
test("var y; [1].concat(x).concat(y)","var y; [1].concat(x, y)");// x might have a getter that updates y, but that side effect is preserved correctly
1395
1397
test("var x; [1].concat(x.a).concat(x)","var x; [1].concat(x.a, x)");// x.a might have a getter that updates x, but that side effect is preserved correctly
0 commit comments