swc/crates/swc_ecma_minifier/tests/terser/compress/harmony
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
..
array_literal_with_spread_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_literal_with_spread_2a test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_literal_with_spread_2b test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_literal_with_spread_3a test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_literal_with_spread_3b test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_literal_with_spread_4a test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_literal_with_spread_4b test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
array_spread_of_sequence test(es/minifier): Organize terser tests (#6116) 2022-10-11 08:25:11 +00:00
arrow_function_parens test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
arrow_function_parens_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_expression_statement test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_expression_statement_unused test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_expression_statement_unused_toplevel test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_extends test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_extends_class test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_extends_function test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_extends_regex test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_method_using_arguments test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_methods_and_getters_with_keep_quoted_props_enabled test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
class_name_can_be_mangled test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_name_can_be_preserved feat(es/renamer): Support safari10 from the name mangler (#6801) 2023-01-13 05:00:13 +00:00
class_name_can_be_preserved_with_reserved test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
class_statics test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
classes test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
classes_can_have_computed_generators test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
classes_can_have_computed_static test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
classes_can_have_generators test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
classes_extending_classes_out_of_pure_iifes test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
classes_with_expression_as_expand test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
default_assign test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
expansion fix(es/renamer): Handle rest params correctly (#6821) 2023-01-16 06:57:16 +00:00
export_default_anon_class test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
export_default_anon_function test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
export_default_array test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
export_default_class_decl test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
export_default_function_decl test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
export_default_object_expression test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
export_module_statement test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
export_statement test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
export_statement_mangling test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
fat_arrow_as_param test(es/minifier): Organize terser tests (#6116) 2022-10-11 08:25:11 +00:00
format_methods test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
import_all_statement test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
import_meta test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
import_statement test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
import_statement_mangling test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
inline_arrow_using_arguments test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1613 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_1753 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_1753_disable feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_1898 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_2028 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2345 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2349 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2349b test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2676 feat(es/minifier): Respect inline level and preserve native names (#8205) 2023-11-02 08:59:59 +09:00
issue_2762 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_2794_1 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_2794_2 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_2794_3 feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
issue_2794_4 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2794_5 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2794_6 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2874_1 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2874_2 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_2874_3 fix(es/minifier): Improve infection analysis (#6044) 2022-10-06 18:12:09 +09:00
issue_3028 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_3061 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
issue_t80 test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
module_enabled test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
module_enables_strict_mode test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
module_mangle_scope test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
new_target test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
number_literals test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
object_literal_method_using_arguments test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
object_rest_spread test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
object_spread_of_sequence test(es/minifier): Organize terser tests (#6116) 2022-10-11 08:25:11 +00:00
object_spread_unsafe feat(es/minifier): Distinguish calls in alias analyzer (#6080) 2022-10-08 03:15:18 +00:00
regression_cannot_destructure test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
regression_cannot_use_of test(es/minifier): Remove analysis snapshot (#5939) 2022-09-23 13:14:42 +09:00
regression_for_of_const feat(es/minifier): Make name mangler understand block scoping (#6670) 2023-01-06 03:14:10 +00:00
shorthand_keywords test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00
typeof_arrow_functions test(es/minifier): Remove mangle-only snapshots (#5979) 2022-09-28 21:35:52 +09:00