swc/crates/swc_ecma_codegen
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
..
benches perf(es/codegen): Use Vec<T> from swc_allocator (#9280) 2024-07-19 10:27:32 +00:00
examples perf(es/codegen): Use Vec<T> from swc_allocator (#9280) 2024-07-19 10:27:32 +00:00
scripts chore(xtask): Migrate scripts to xtask (#8072) 2023-10-06 14:44:53 +00:00
src fix(es/codegen): Improve EndsWithAlphaNum (#9675) 2024-10-24 16:34:18 +09:00
tests fix(es/codegen): Ensure decorators are emitted first in TS paramters (#9545) 2024-09-11 11:47:37 +09:00
.gitignore doc(api/rust): Add an example for generating code and sourcemap (#4005) 2022-03-14 03:52:59 +00:00
Cargo.toml chore: Publish crates with swc_core v1.0.2 2024-10-17 10:54:06 +09:00