oxc/tasks
Don Isaac 027a67d94c
feat(minifier): constant addition expression folding (#882)
Fold constant addition expressions. Handles string concatenation and
addition, both with implicit casting.

For example,
```ts
let x = 1 + 1
let y = "hello " + "world"
```
now becomes
```ts
let x = 2
let y = "hello world"
```

## Extra Goodies
- test(minifier): add `test_snapshot` helper to perform snapshot tests
with `insta`
- up(hir): implement `std::ops::Add` for `NumericValue`
- up(span): impl `TryFrom<Cow<'_, &str>>` for `Atom`
2023-09-11 10:38:35 +08:00
..
benchmark chore(benchmark): turn on all lints (#892) 2023-09-10 23:16:39 +08:00
common fix(benchmark): use different data sets for benchmark and minifier test 2023-09-02 20:56:45 +08:00
coverage feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
minsize feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
rulegen chore(deps): bump the dependencies group with 6 updates (#852) 2023-09-04 15:46:27 +08:00
libs.txt fix(benchmark): use different data sets for benchmark and minifier test 2023-09-02 20:56:45 +08:00