swc/crates/swc_ecma_transforms_optimization/src
Donny/강동윤 68e9017376
fix(es/minifier): Improve minifier (#3350)
swc_ecma_transforms_optimization:
 - `expr_simplifier`: Track more changes.

swc_ecma_minifier:
 - Analyze after applying the pure optimizer.
 - Preserve access to a variable not in scope.
 - `compress`: Remove string literal if it was not a directive.
 - `pure/collapse_vars`: Merge vars declared in the first statement into one with initializers if `collapse_vars` and `join_vars` are enabled.
 - `unused`: Use `usage_count` instead of `ref_count`.
 - `unused`: Fix dropping rule for member expressions.
 - `unused`: Fix dropping rule for declarations.
 - `hoist_props`: Preserve exported items.
2022-01-27 15:36:22 +09:00
..
simplify fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
const_modules.rs chore(ci): Configure clippy (#3250) 2022-01-13 23:06:11 +09:00
inline_globals.rs refactor(es): Add visit_obj_and_computed macro (#3304) 2022-01-19 23:11:52 +09:00
json_parse.rs fix(es/transforms): Handle template literals within jsonify pass (#3282) 2022-01-16 14:57:12 +00:00
lib.rs refactor(*): Cleanup (#3274) 2022-01-15 16:43:34 +09:00
util.rs refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00