babel / babel/minify

Combine consecutive assignments to the same value

Open
#288 1 comment 0 reactions 0 assignees View on GitHub
enhancement Tag: New Feature
Dominant language
JavaScript
Stars
4.4k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

```js
!function() {
this.foo = null;
this.bar = null;
this.baz = null;
}()
```

becomes:
```js
!function(){this.foo=null,this.bar=null,this.baz=null}();
```

but could be shortened to:
```js
!function(){this.foo=this.bar=this.baz=null}();
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.