swc/crates/swc_ecma_minifier/tests/full
Donny/강동윤 39c680d814
fix(es/codegen): Fix codegen of unicode surrogates (#7985)
**Description:**


x-ref: https://vercel.slack.com/archives/C02HY34AKME/p1695334071194139


Reproduction: https://github.com/kdy1/repro-test-mdx-korean



Regression of next.js: `v13.4.11`(swc_core@v0.79.13) => `v13.5.2`
(swc_core@v0.83.12)


 - `next@v13.4.19` works (swc_core@v0.79.59)
 - `next@v13.4.20-canary.3` works (swc_core@v0.79.70)
 -  **`next@v13.4.20-canary.32` fails** (swc_core@v0.83.12)

Commit range:
662f236aa5...e67bf05f9d

- `swc_core@v0.79.70`:
662f236aa5
- `swc_core@v0.83.12`:
e67bf05f9d

Diff: https://gist.github.com/kdy1/047e7e5537c34180d446cb3d5b95fce8

---

I did more investigation by monkey-patching the `next` package.
`.minify()` resolved without an exception.
It means that `.minify()` is producing an invalid ES code.

So... candidates are

 - https://github.com/swc-project/swc/pull/7890
 - https://github.com/swc-project/swc/pull/7876
 - https://github.com/swc-project/swc/pull/7858
 - https://github.com/swc-project/swc/pull/7856
 - https://github.com/swc-project/swc/pull/7853
 - https://github.com/swc-project/swc/pull/7832
2023-09-25 23:36:05 +00:00
..
feedback-mapbox fix(es/minifier): Abort seq inliner if a same var is defined in outer scope (#7772) 2023-08-09 20:01:59 +00:00
helpers/1 fix(es/minifier): Handle synthesized export default expression (#7707) 2023-07-31 04:10:18 +00:00
issue-5912-bigdecimal refactor(es/minifier): Pre-calculate reassigned (#7832) 2023-08-24 07:35:26 +00:00
issues/7094 fix(es/renamer): Don't use symbols used by declarations if eval exists (#7116) 2023-03-22 06:31:43 +00:00
json-regression fix(es/codegen): Fix codegen of unicode surrogates (#7985) 2023-09-25 23:36:05 +00:00
next-30498/1 feat(es/minifier): Collapse let without init (#5909) 2022-09-21 15:04:29 +00:00
size feat(es/minifier): Drop recursively used var declaration (#7649) 2023-07-15 05:54:34 +09:00
vercel/ms/1 fix(es/minifier): Handle synthesized export default expression (#7707) 2023-07-31 04:10:18 +00:00
config.json refactor(es/minifier): Make rust-analyzer fast, really (#4746) 2022-05-23 16:16:05 +09:00