swc/crates/swc_ecma_minifier/tests/terser/compress/dead_code
Donny/강동윤 dd805e95a4
feat(es/minifier): Respect inline level and preserve native names (#8205)
**Description:**

Note: Preserving native names is a hack, but it's used by `terser` and it's the only way to preserve the name of `class AbortSignal` while mangling without `keep_classnames: true`. We can special case `AbortSignal`, but let's just follow `terser`.


**Related issue:**

 - https://github.com/vercel/next.js/pull/57904
2023-11-02 08:59:59 +09:00
..
accessor test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
collapse_vars_assignment test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
collapse_vars_lvalues_drop_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
collapse_vars_misc1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
dead_code_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
dead_code_2_should_warn fix(es/utils): Fix detection of hoisting (#6738) 2023-01-03 03:12:01 +00:00
dead_code_2_should_warn_strict fix(es/utils): Fix detection of hoisting (#6738) 2023-01-03 03:12:01 +00:00
dead_code_block_decls_die feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
dead_code_const_annotation test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
dead_code_const_annotation_complex_scope test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
dead_code_const_annotation_regex test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
dead_code_const_declaration refactor(es/minifier): Respect toplevel and module options (#7671) 2023-07-20 11:35:08 +09:00
dead_code_constant_boolean_should_warn_more test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
dead_code_constant_boolean_should_warn_more_strict test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
global_fns feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
global_timeout_and_interval_symbols test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_718 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2233_1 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2233_2 feat(es/minifier): Respect inline level and preserve native names (#8205) 2023-11-02 08:59:59 +09:00
issue_2233_3 feat(es/minifier): Respect inline level and preserve native names (#8205) 2023-11-02 08:59:59 +09:00
issue_2383_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2383_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2383_3 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2597 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_2666 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2692 test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
issue_2701 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2749 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2860_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2860_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2929 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
return_assignment feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
throw_assignment feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
try_catch_finally test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
unsafe_builtin test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00