oxc/tasks/minsize/src
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
..
lib.rs feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
main.rs feat: add cargo minsize task for tracking minification size (#276) 2023-04-14 13:07:37 +08:00