Avatar for the swc-project user
swc-project
swc
BlogDocsChangelog

Performance History

Latest Results

fix(es/react): handle apos JSX entities (#12125) **Description:** Fixes a panic when JSX text contains `&apos;` followed by another supported character reference, for example: ```jsx const a = <p>&apos;&amp;</p>; ``` SWC's JSX lexer already decodes `&apos;`, but the React transform maintains an independent entity list for correlating decoded JSX text with its raw source. Because that list did not include `apos`, the decoded and raw character offsets could diverge and cause entity mask construction to panic. This change recognizes `apos` in the transform's entity list, restoring consistency with SWC's existing parser behavior. Although the [JSX specification](https://react.github.io/jsx/#sec-HTMLCharacterReference) text limits named references to HTML4's 252 entities, Babel and TypeScript also decode `apos`. This option preserves that de-facto compatibility behavior. **BREAKING CHANGE:** No. **Related issue (if exists):** - Close: #12123
main
6 hours ago
fix
Austaras:main
9 hours ago
chore: Add changeset
fix/issue-12123-parse-apos
15 hours ago
chore: Add changeset
fix/issue-12123
15 hours ago
fix(es/react): handle apos JSX entities (#12123)
fix/issue-12123-parse-apos
15 hours ago
fix(es): close suspended TSRX iterators
trueadm:codex/tsrx-parser
21 hours ago

Latest Branches

CodSpeed Performance Gauge
0%
fix(es/minifier): Preserve for init#12121
9 hours ago
4eeac46
Austaras:main
CodSpeed Performance Gauge
+2%
15 hours ago
a658bd0
fix/issue-12123-parse-apos
CodSpeed Performance Gauge
+3%
fix(es/jsx): preserve unsupported apos entity#12124
15 hours ago
83821b4
fix/issue-12123
© 2026 CodSpeed Technology
Home Terms Privacy Docs