swc/crates
CamWass ba2a942f56
fix(es/codegen): Improve EndsWithAlphaNum (#9675)
**Description:**

This PR makes EndsWithAlphaNum smarter, improving codegen of in/instanceof binary expressions, and for in/of heads. For example:

Before: 
```js
foo() in b;
```
After:
```js
foo()in b;
```

---------

Co-authored-by: Donny/강동윤 <kdy1997.dev@gmail.com>
2024-10-24 16:34:18 +09:00
..
ast_node chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
better_scoped_tls chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
binding_macros chore: Publish crates with swc_core v1.0.1 2024-10-15 23:13:49 +09:00
dbg-swc chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
from_variant chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
jsdoc chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
preset_env_base chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
string_enum chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc fix(es/renamer): Check preserved in normal renaming mode (#9666) 2024-10-22 14:02:38 +09:00
swc_allocator chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_atoms chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_bundler chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_cached chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_cli_impl chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_common chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_compiler_base chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_config chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_config_macro chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_core chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_css chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_ast chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_codegen chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_codegen_macros chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_compat chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_lints chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_minifier chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_modules chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_parser chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_prefixer chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_utils chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_css_visit chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecma_ast chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecma_codegen fix(es/codegen): Improve EndsWithAlphaNum (#9675) 2024-10-24 16:34:18 +09:00
swc_ecma_codegen_macros chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecma_compat_bugfixes chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_ecma_compat_common chore: Publish crates with swc_core v1.0.1 2024-10-15 23:13:49 +09:00
swc_ecma_compat_es3 chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_compat_es2015 chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_ecma_compat_es2016 chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_compat_es2017 chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_compat_es2018 chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_compat_es2019 chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_compat_es2020 chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_compat_es2021 chore: Publish crates with swc_core v1.0.1 2024-10-15 23:13:49 +09:00
swc_ecma_compat_es2022 chore: Publish crates with swc_core v1.0.1 2024-10-15 23:13:49 +09:00
swc_ecma_ext_transforms chore: Publish crates with swc_core v1.0.1 2024-10-15 23:13:49 +09:00
swc_ecma_lints chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_loader chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecma_minifier fix(es/codegen): Improve EndsWithAlphaNum (#9675) 2024-10-24 16:34:18 +09:00
swc_ecma_parser chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_preset_env chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_quote chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecma_quote_macros chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_testing chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecma_transforms chore: Publish crates with swc_core v1.0.3 2024-10-17 15:30:51 +09:00
swc_ecma_transforms_base fix(es/renamer): Check preserved in normal renaming mode (#9666) 2024-10-22 14:02:38 +09:00
swc_ecma_transforms_classes chore: Publish crates with swc_core v1.0.1 2024-10-15 23:13:49 +09:00
swc_ecma_transforms_compat chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_ecma_transforms_macros chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecma_transforms_module chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_transforms_optimization chore: Publish crates with swc_core v1.0.3 2024-10-17 15:30:51 +09:00
swc_ecma_transforms_proposal chore: Publish crates with swc_core v1.0.3 2024-10-17 15:30:51 +09:00
swc_ecma_transforms_react chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_transforms_testing chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_transforms_typescript chore: Publish crates with swc_core v1.0.3 2024-10-17 15:30:51 +09:00
swc_ecma_usage_analyzer chore: Publish crates with swc_core v1.0.1 2024-10-15 23:13:49 +09:00
swc_ecma_utils chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_ecma_visit chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_ecmascript chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_eq_ignore_macros chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_error_reporters chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_estree_ast chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_estree_compat chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_fast_graph chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_fast_ts_strip fix(wasm-typescript): Fix option types of functions (#9662) 2024-10-20 09:41:09 +00:00
swc_graph_analyzer chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_html chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_html_ast chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_html_codegen chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_html_codegen_macros chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_html_minifier chore: Publish crates with swc_core v1.0.4 2024-10-21 03:52:08 +00:00
swc_html_parser chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_html_utils chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_html_visit chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_macros_common chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_malloc chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_node_bundler chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_node_comments chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_nodejs_common chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_plugin chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_plugin_macro chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_plugin_proxy chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_plugin_runner chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_plugin_testing refactor(visit): Pre-generate visitor code (#9262) 2024-07-17 23:00:45 +00:00
swc_timer chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_trace_macro chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_transform_common chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_typescript chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00
swc_visit chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_x_optimizer feat(x): Initialize project (#8999) 2024-05-31 00:56:21 +00:00
swc_xml chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_xml_ast chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_xml_codegen chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_xml_codegen_macros chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_xml_parser chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
swc_xml_visit chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
testing chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00
testing_macros chore: Publish crates with swc_core v1.0.0 2024-10-12 16:20:07 +09:00