swc/crates/swc_ecma_minifier/tests/terser/compress/drop_unused
Donny/강동윤 877936f626
feat(es/minifier): Clone trivial literals in sequential inliner (#6005)
**Description:**

As our minifier is two-pass by default, this is enough.

At the first pass, we inline all numeric literals using sequential inliner, and minifier can then inline constants correctly in the second pass.
2022-10-03 07:20:48 +00:00
..
assign_binding test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
assign_chain test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
cascade_drop_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
chained_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
const_assign test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
defun_lambda_same_name test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
delete_assign_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
delete_assign_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
double_assign_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
double_assign_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
double_assign_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_fargs test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
drop_fnames test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
drop_toplevel_all test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_all_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_funcs test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_funcs_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_keep_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_retain_array test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_retain_regex test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_vars test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_vars_fargs test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_toplevel_vars_retain test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_value test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
drop_var test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
function_argument_modified_by_function_statement test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
global_var test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
iife test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_805_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_805_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1539 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1583 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1656 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1709 fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
issue_1715_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1715_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1715_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1715_4 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_1830_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1830_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_1838 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1968 test(es/minifier): Organize terser tests (#6015) 2022-10-02 07:00:10 +00:00
issue_2063 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2105_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2105_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2136_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2136_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2136_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2163 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2226_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2226_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2226_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2288 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2418_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2418_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2418_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2418_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2418_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2516_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2516_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2660_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2660_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2665 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2768 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2846 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2995 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3146_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3146_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3146_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_3146_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_3192 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_t161_top_retain_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_t161_top_retain_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_t161_top_retain_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_t161_top_retain_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_6 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_7 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_8 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_9 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_10 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_11 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_12 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_13 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t161_top_retain_14 feat(es/minifier): Clone trivial literals in sequential inliner (#6005) 2022-10-03 07:20:48 +00:00
issue_t161_top_retain_15 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t183 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
keep_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
keep_fnames fix(es/renamer): Use a separate scope for the name of FnExpr (#6008) 2022-10-01 12:33:19 +09:00
reassign_const test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_block_decls test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_block_decls_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_circular_references_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_circular_references_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_circular_references_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_class_which_extends_might_throw test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw_3 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_which_might_throw_4 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_with_static_props_side_effects test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_class_with_static_props_side_effects_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_funarg_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_funarg_2 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_keep_harmony_destructuring test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_keep_setter_arg test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_nested_function test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_null_conditional_chain test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
unused_seq_elements test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unused_var_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
used_block_decls_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
used_var_in_catch test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
var_catch_toplevel test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
vardef_value test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
variable_refs_outside_unused_class test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00