swc/crates/swc_ecma_codegen/src
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
..
text_writer build: Update rustc to nightly-2024-10-07 (#9624) 2024-10-08 15:01:14 +09:00
comments.rs build: Update rustc to nightly-2024-10-07 (#9624) 2024-10-08 15:01:14 +09:00
config.rs feat(es/minifier): Support format.inline_script (#8252) 2023-11-14 21:37:05 +00:00
decl.rs build: Update rustc to nightly-2024-10-07 (#9624) 2024-10-08 15:01:14 +09:00
expr.rs fix(es/codegen): Improve EndsWithAlphaNum (#9675) 2024-10-24 16:34:18 +09:00
jsx.rs build: Update rustc to nightly-2024-10-07 (#9624) 2024-10-08 15:01:14 +09:00
lib.rs fix(es/codegen): Emit space after div if rhs has leading comment (#9631) 2024-10-11 15:48:14 +09:00
macros.rs perf(es/codegen): Reduce usage of tracing::instrument (#9604) 2024-10-02 15:10:03 +09:00
stmt.rs build(cargo): Update rustc to 2023-07-03 (#7623) 2023-07-05 03:50:43 +00:00
tests.rs fix(es/codegen): Emit space after div if rhs has leading comment (#9631) 2024-10-11 15:48:14 +09:00
text_writer.rs refactor(es): Make the code compile with miri (#8836) 2024-04-10 23:43:07 +00:00
typescript.rs build: Update rustc to nightly-2024-10-07 (#9624) 2024-10-08 15:01:14 +09:00
util.rs fix(es/codegen): Improve EndsWithAlphaNum (#9675) 2024-10-24 16:34:18 +09:00