Commit 7a0c41d
fix: preserve ANTLR ATN data in rolldown build
The oxc printer replaces lone surrogates (0xD800-0xDFFF) with U+FFFD in
long CJS strings, corrupting ANTLR's serialized ATN data and crashing
the "Go to Source" feature with IllegalStateException.
Add a preserveAntlrATN transform plugin that converts ATN string
literals to String.fromCharCode() arrays before the oxc printer
processes them, since numeric values are immune to re-serialization bugs.
Also fix rolldown lana config: add missing resolve.alias for
apex-log-parser, add keepNames to output, and align SWC minify options
with rollup config.
Upstream: oxc-project/oxc#3526
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5360c97 commit 7a0c41d
2 files changed
Lines changed: 41 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 25 | + | |
| 26 | + | |
31 | 27 | | |
32 | 28 | | |
33 | 29 | | |
34 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
35 | 58 | | |
36 | 59 | | |
37 | 60 | | |
| |||
42 | 65 | | |
43 | 66 | | |
44 | 67 | | |
| 68 | + | |
45 | 69 | | |
46 | 70 | | |
47 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
48 | 78 | | |
49 | | - | |
| 79 | + | |
50 | 80 | | |
51 | 81 | | |
52 | 82 | | |
| |||
56 | 86 | | |
57 | 87 | | |
58 | 88 | | |
| 89 | + | |
59 | 90 | | |
60 | 91 | | |
61 | 92 | | |
62 | 93 | | |
63 | 94 | | |
64 | 95 | | |
65 | | - | |
66 | 96 | | |
67 | 97 | | |
68 | 98 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
| 49 | + | |
| 50 | + | |
55 | 51 | | |
56 | 52 | | |
57 | 53 | | |
| |||
0 commit comments