oxc/crates
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
..
oxc Release oxc_resolver v0.1.0 2023-09-04 14:45:29 +08:00
oxc_allocator Release oxc v0.1.3 2023-09-03 12:22:05 +08:00
oxc_ast Release oxc v0.1.3 2023-09-03 12:22:05 +08:00
oxc_ast_lower Release oxc v0.1.3 2023-09-03 12:22:05 +08:00
oxc_cli feat(linter): add runner for import-plugin (#858) 2023-09-06 14:54:19 +08:00
oxc_diagnostics Release oxc v0.1.3 2023-09-03 12:22:05 +08:00
oxc_formatter fix(formatter): add whitespace around binary operators 2023-09-04 22:07:57 +08:00
oxc_hir feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
oxc_index Release oxc v0.1.3 2023-09-03 12:22:05 +08:00
oxc_linter feat(linter): eslint-plugin-import(no-cycle) (#890) 2023-09-10 22:58:45 +08:00
oxc_linter_plugin feat(vscode): Add linter plugin to vscode extension (#813) 2023-08-29 23:35:32 -04:00
oxc_macros refactor(linter): less a global hashmap to reduce rule timer macro expansion (#822) 2023-09-01 10:32:17 +08:00
oxc_minifier feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
oxc_napi
oxc_parser fix(parser): parse [+In] in object binding initializer (#874) 2023-09-09 14:54:20 +08:00
oxc_query fix(query): fix UnaryExpression.operator (#859) 2023-09-05 06:04:14 +00:00
oxc_resolver refactor(resolver): clean up load_alias (#875) 2023-09-09 15:32:32 +08:00
oxc_semantic feat(linter): eslint-plugin-import/no-self-import (#878) 2023-09-10 00:12:26 +08:00
oxc_span feat(minifier): constant addition expression folding (#882) 2023-09-11 10:38:35 +08:00
oxc_syntax chore: fix typo (#889) 2023-09-10 21:44:09 +08:00
oxc_type_synthesis chore: clean up deps (#840) 2023-09-02 21:34:24 +08:00
oxc_wasm chore: clean up deps (#840) 2023-09-02 21:34:24 +08:00