oxc/crates/oxc_minifier/tests
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
..
closure feat(minifier): initialize conditions folding (#658) 2023-07-30 01:02:32 +08:00
esbuild feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
oxc feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
snapshots feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
tdewolff chore: reformat 2023-07-27 13:11:46 +08:00
terser refactor: avoid unstable let_chains 2023-07-27 09:44:57 +08:00
.gitignore
mod.rs feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00