oxc/crates
Boshen 6bc13f6cd4 feat(minifier): add MinimizeConditions pass (#5747)
I expect small performance regression.

But managed to improve the following case from react.developmement.js

```
oxc  main ❯ diff before.js after.js
670c670
< 		if (!(dispatcher !== null)) throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
---
> 		if (dispatcher === null) throw Error("Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:\n1. You might have mismatching versions of React and the renderer (such as React DOM)\n2. You might be breaking the Rules of Hooks\n3. You might have more than one copy of React in the same app\nSee https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.");
```
2024-09-13 08:31:45 +00:00
..
oxc release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_allocator release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_ast feat(ast): provide NONE type for AST builder calls (#5737) 2024-09-13 02:42:01 +00:00
oxc_ast_macros release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_cfg refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
oxc_codegen perf(rust): use cow_utils instead (#5664) 2024-09-11 18:39:30 +08:00
oxc_diagnostics release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_index perf(index): remove Idx bounds-checks from first + last methods (#5726) 2024-09-13 02:46:57 +00:00
oxc_isolated_declarations feat(ast): provide NONE type for AST builder calls (#5737) 2024-09-13 02:42:01 +00:00
oxc_language_server refactor(linter): start internal/external split of OxlintOptions (#5659) 2024-09-10 03:19:04 +00:00
oxc_linter fix(linter/no-unused-vars): writes to members triggering false positive (#5744) 2024-09-13 06:00:48 +00:00
oxc_macros chore(dprint): format toml files (#5599) 2024-09-08 14:26:16 +08:00
oxc_mangler release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_minifier feat(minifier): add MinimizeConditions pass (#5747) 2024-09-13 08:31:45 +00:00
oxc_module_lexer release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_parser feat(ast): provide NONE type for AST builder calls (#5737) 2024-09-13 02:42:01 +00:00
oxc_prettier refactor(rust): remove some #[allow(unused)] (#5716) 2024-09-12 02:19:01 +00:00
oxc_regular_expression release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_semantic refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
oxc_sourcemap perf(rust): use cow_utils instead (#5664) 2024-09-11 18:39:30 +08:00
oxc_span release(oxc): crates v0.28.0 (#5696) 2024-09-11 17:57:55 +08:00
oxc_syntax refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
oxc_transformer refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
oxc_traverse refactor(semantic): s/AstNodeId/NodeId (#5740) 2024-09-13 03:00:00 +00:00
oxc_wasm chore(dprint): format toml files (#5599) 2024-09-08 14:26:16 +08:00