babel / babel/minify

Perform SSA -type of optimizations

Open
#313 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
4.4k
Forks
217
PR merge metrics
No merged PRs in 30d

Description

(as @hzoo suggested in Slack)

c.f.: https://en.wikipedia.org/wiki/Static_single_assignment_form

```js
var x = 1;
var x = 2;
y = x;
```

We can determine that 1st statement is useless. Combined with variable inlining, we could shorten this to the ideal `y = 2`.

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.