swc/crates
CPunisher a7c82bdfa9
fix(es/minifier): Fix variable declaration in default branch (#9220)
**Description:**

When a default branch appears before an exact match, the variable declaration should be recorded before deleting the default branch.

**Related issue:**

 - Closes https://github.com/swc-project/swc/issues/8919
2024-07-12 13:03:50 +00:00
..
ast_node chore: Bump crates 2024-04-29 09:56:27 +09:00
better_scoped_tls chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00
binding_macros chore: Bump crates 2024-07-12 04:14:55 +00:00
dbg-swc chore: Bump crates 2024-07-12 06:08:23 +00:00
from_variant chore: Bump crates 2024-04-29 09:56:27 +09:00
jsdoc chore: Bump crates 2024-07-12 04:14:55 +00:00
preset_env_base chore: Bump preset_env_base 2024-07-06 09:33:36 +09:00
string_enum chore: Bump crates 2024-04-29 09:56:27 +09:00
swc test(es/base): Disable flaky benchmark (#9221) 2024-07-12 12:34:42 +00:00
swc_allocator doc(allocator): Mention oxc_allocator 2024-07-10 20:27:34 +09:00
swc_atoms refactor(common): Drop SyntaxContext from AST nodes (#9175) 2024-07-12 13:13:20 +09:00
swc_bundler chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_cached chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00
swc_cli_impl refactor(common): Drop SyntaxContext from AST nodes (#9175) 2024-07-12 13:13:20 +09:00
swc_common chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_compiler_base chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_config chore: Bump crates 2024-06-07 07:18:53 +00:00
swc_config_macro chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_core chore: Bump crates 2024-07-12 06:36:34 +00:00
swc_css chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_ast chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_codegen chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_codegen_macros chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_css_compat chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_lints chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_minifier chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_modules chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_parser chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_prefixer chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_utils chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_css_visit chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_ast chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_codegen chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_codegen_macros chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_ecma_compat_bugfixes chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_common chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es3 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es2015 chore: Bump crates 2024-07-12 06:36:34 +00:00
swc_ecma_compat_es2016 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es2017 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es2018 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es2019 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es2020 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es2021 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_compat_es2022 chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_ext_transforms chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_lints chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_loader chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_minifier fix(es/minifier): Fix variable declaration in default branch (#9220) 2024-07-12 13:03:50 +00:00
swc_ecma_parser chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_preset_env chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_quote chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_quote_macros chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_testing chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_base chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_classes chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_compat chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_macros chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_ecma_transforms_module chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_optimization chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_proposal chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_react chore: Drop cyclic dependency (#9217) 2024-07-12 13:30:32 +09:00
swc_ecma_transforms_testing chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_transforms_typescript chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_usage_analyzer chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_utils chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecma_visit chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_ecmascript chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_eq_ignore_macros chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00
swc_error_reporters chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_estree_ast chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_estree_compat chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_fast_graph chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_fast_ts_strip chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_graph_analyzer chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_html chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_html_ast chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_html_codegen chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_html_codegen_macros chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_html_minifier chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_html_parser chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_html_utils chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_html_visit chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_macros_common chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_malloc chore: Bump crates 2024-07-07 00:36:16 +00:00
swc_node_bundler chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_node_comments chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_nodejs_common chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00
swc_plugin chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00
swc_plugin_macro chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00
swc_plugin_proxy chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_plugin_runner chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_plugin_testing
swc_timer chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_trace_macro chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00
swc_transform_common feat(es): Integrate experimental data API (#9027) 2024-06-07 21:00:26 +09:00
swc_typescript chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_visit chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_visit_macros chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_x_optimizer feat(x): Initialize project (#8999) 2024-05-31 00:56:21 +00:00
swc_xml chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_xml_ast chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_xml_codegen chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_xml_codegen_macros chore: Bump crates 2024-04-29 09:56:27 +09:00
swc_xml_parser chore: Bump crates 2024-07-12 04:14:55 +00:00
swc_xml_visit chore: Bump crates 2024-07-12 04:14:55 +00:00
testing chore: Bump crates 2024-07-12 04:14:55 +00:00
testing_macros chore: Apply cargo autoinherit (#8902) 2024-04-29 00:54:45 +00:00