swc/ecmascript/minifier/tests/terser/compress/drop-unused
강동윤 c8b46bf6db
feat(es/minifier): Implement more rules (#2183)
swc_ecma_codegen:
 - Don't panic on `Pat::Invalid`.
 - Fix codegen of unary minus. (#2213)

swc_ecma_minifier:
 - Remove identifier of function expressions if a variable with same name exists.
 - `sequences`: Merge into the argument of a throw statement.
 - Use `ignore_return_value` for `void` expressions.
 - Improve inlining.
 - Drop last `return` if the return value is not used.
 - `sequences`: Merge `c++; use(c)` as `use(++c)`.
 - `sequences`: Merge assignments with an operator.
 - `comparisons`: Optimize the comparison operator if type is equivalent.
 - Fix `negate_cost`.
 - `unused`: Fix order or variable initalizer when variables are dropped.
 - Fix `top_retain` option.
 - `if_return`: Don't merge nested if it's wrong to do so. (#2214)
 - Fix negation of `if_return`.
2021-09-08 09:45:39 +00:00
..
assign_binding feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
assign_chain feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
cascade_drop_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
chained_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
const_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
defun_lambda_same_name feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
delete_assign_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
delete_assign_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
double_assign_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
double_assign_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
double_assign_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_fargs feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_fnames feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_all feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_all_retain feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_funcs feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_funcs_retain feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_keep_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_retain feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_retain_array feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_retain_regex feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_vars feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_vars_fargs feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_toplevel_vars_retain feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_value feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
drop_var feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
function_argument_modified_by_function_statement feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
global_var feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
iife feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_805_1 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
issue_805_2 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
issue_1539 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1583 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1656 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1709 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1715_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1715_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1715_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1715_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1830_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1830_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1838 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_1968 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2063 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2105_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2105_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2136_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2136_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2136_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2163 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2226_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2226_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2226_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2288 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2418_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2418_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2418_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2418_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2418_5 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2516_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2516_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2660_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2660_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2665 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2768 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2846 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_2995 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_3146_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_3146_2 feat(es/minifier): Implement more rules (#1871) 2021-07-30 10:11:27 +09:00
issue_3146_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_3146_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_3192 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_4 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_5 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_6 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_7 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_8 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_9 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_10 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_11 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_12 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_13 feat(es/minifier): Implement more rules (#2183) 2021-09-08 09:45:39 +00:00
issue_t161_top_retain_14 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t161_top_retain_15 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
issue_t183 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
keep_assign feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
keep_fnames feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
reassign_const feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_block_decls feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_block_decls_in_catch feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_circular_references_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_circular_references_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_circular_references_3 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_class_which_extends_might_throw feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_class_which_might_throw feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_class_which_might_throw_2 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_class_which_might_throw_3 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_class_which_might_throw_4 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_class_with_static_props_side_effects feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_class_with_static_props_side_effects_2 feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_funarg_1 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_funarg_2 feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_keep_harmony_destructuring feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_keep_setter_arg feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_nested_function feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_null_conditional_chain feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
unused_seq_elements feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00
unused_var_in_catch feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
used_block_decls_in_catch feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
used_var_in_catch feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
var_catch_toplevel feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
vardef_value feat(es/minifier): Implement more rules (#1735) 2021-05-25 16:39:07 +09:00
variable_refs_outside_unused_class feat(es/minifier): Implement minifier partially (#1302) 2021-05-20 13:51:30 +09:00