swc/crates/swc_ecma_minifier/tests/terser/compress/drop-unused
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
..
assign_binding fix(es/minifier): Disable inlining of expressions from collapse_vars (#3200) 2022-01-06 20:49:10 +09:00
assign_chain refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
cascade_drop_assign refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
chained_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
const_assign refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
defun_lambda_same_name refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
delete_assign_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
delete_assign_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
double_assign_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
double_assign_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
double_assign_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_assign 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
drop_fnames refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_all refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_all_retain refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_funcs refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_funcs_retain refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_keep_assign refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_retain refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_retain_array refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_retain_regex refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_vars refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_vars_fargs refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_toplevel_vars_retain refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_value refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
drop_var refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
function_argument_modified_by_function_statement refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
global_var refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
iife refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_805_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_805_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1539 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1583 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1656 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1709 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1715_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1715_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1715_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1715_4 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1830_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1830_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1838 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_1968 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2063 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2105_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2105_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2136_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2136_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2136_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2163 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2226_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2226_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2226_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2288 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2418_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2418_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2418_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2418_4 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2418_5 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2516_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2516_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2660_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2660_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2665 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2768 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2846 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_2995 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_3146_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_3146_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_3146_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_3146_4 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_3192 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_4 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_5 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_6 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_7 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_8 fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
issue_t161_top_retain_9 fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
issue_t161_top_retain_10 fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
issue_t161_top_retain_11 fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
issue_t161_top_retain_12 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t161_top_retain_13 fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
issue_t161_top_retain_14 fix(es/minifier): Improve minifier (#3350) 2022-01-27 15:36:22 +09:00
issue_t161_top_retain_15 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
issue_t183 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
keep_assign refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
keep_fnames refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
reassign_const refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_block_decls refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_block_decls_in_catch refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_circular_references_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_circular_references_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_circular_references_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_class_which_extends_might_throw refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_class_which_might_throw refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_class_which_might_throw_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_class_which_might_throw_3 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_class_which_might_throw_4 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_class_with_static_props_side_effects refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_class_with_static_props_side_effects_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_funarg_1 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_funarg_2 refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_keep_harmony_destructuring refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_keep_setter_arg refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_nested_function refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_null_conditional_chain refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_seq_elements refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
unused_var_in_catch refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
used_block_decls_in_catch refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
used_var_in_catch refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
var_catch_toplevel refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
vardef_value refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00
variable_refs_outside_unused_class refactor: Flatten ecmascript (#2708) 2021-11-10 19:00:54 +09:00