swc/crates/swc_ecma_minifier/tests/terser/compress/issue-281
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
..
collapse_vars_constants refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_fargs refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
inner_var_for_in_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1254_negate_iife_nested refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1254_negate_iife_true refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1288_side_effects refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1595_3 fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
issue_1758 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
keep_fargs refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
modified refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
negate_iife_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
negate_iife_3_off refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
negate_iife_4 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
negate_iife_5 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
negate_iife_5_off refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
negate_iife_issue_1073 fix(es/minifier): Don't create top level variables (#2985) 2021-12-07 18:02:43 +09:00
pure_annotation_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
pure_annotation_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
ref_scope refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
safe_undefined refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
wrap_iife refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
wrap_iife_in_expression refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
wrap_iife_in_return_call refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00