What swc-project/swc shipped
Written by FoxPlug from public releases; not affiliated with SWC. An automatic summary of the public release, pull request and commit data of github.com/swc-project/swc. SWC did not write it and does not use or endorse FoxPlug. Every line links to the public change it describes.
Get a weekly update like this for your product, free
Week of September 21, 2026
What shipped
- Released swc_core v81.0.0 Release
- Fixed HTML minification to preserve adjacent script and SVG script elements, preventing evaluation boundary changes and CSP hash mismatches Pull request #12411
- Added parsing support for optional renamed Flow component parameters like `foo as bar?: T` Pull request #12410
- Fixed HTML parser to preserve customizable select markup and rich option content instead of dropping them as stray tags Pull request #12413
- Fixed minifier bug where arrow functions with `this` references were incorrectly inlined when used as arguments Pull request #12409
- Fixed tree shaker to keep function and class declarations whose self-references are dropped Pull request #12401
- Fixed minifier to mark properties assigned through destructuring targets as mutated, preventing invalid JavaScript generation Pull request #12398
- Added support for escaped keywords as property names, such as `({ br\u0065ak: 42 }).br\u0065ak` Pull request #12358
- Completed Node.js/Amaro REPL support APIs so static imports properly declare bindings for later REPL inputs Pull request #12395
- Reverted per-site pure comment handling for property reads and unused member access optimization Pull request #12419
Why it matters
This week addresses critical correctness issues in minification, HTML parsing, and property handling that were producing invalid or unexpected JavaScript. Parser improvements for Flow syntax and escaped keywords expand language coverage, while the new REPL support completes a Node.js integration feature.
Changelog entry
- swc_core v81.0.0 released Release
- fix(html/minifier): Preserve adjacent script and SVG script elements during minification Pull request #12411
- fix(es/parser): Parse optional renamed Flow component parameters Pull request #12410
- fix(html/parser): Preserve customizable select markup and rich option content Pull request #12413
- fix(es/minifier): Avoid inlining arrow functions with this when used as arguments Pull request #12409
- fix(es/parser): Allow escaped keywords as property and import/export names Pull request #12358
- fix(es/minifier): Keep function and class declarations with dropped self-references Pull request #12401
- fix(es/minifier): Mark properties assigned through destructuring targets as mutated Pull request #12398
- fix(nodejs): Complete Amaro REPL support APIs for Node.js imports Pull request #12395
- revert(es/minifier): Revert per-site pure comment handling and unused member access optimization Pull request #12419
swc v81.0.0 ships fixes for script element merging, destructuring property mutations, function self-references, and escaped keywords. HTML parsing now preserves select markup correctly.
swc v81.0.0 is out with significant correctness fixes: HTML minifier now preserves adjacent script elements to maintain evaluation boundaries and CSP hashes, the minifier tracks destructuring assignments to prevent invalid code generation, and the tree shaker keeps functions whose self-references are removed. Parser improvements add Flow component parameter support and escaped keyword handling.