swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Optimizations
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/parser): isolate enum await context Enum members can reject await identifiers under enclosing async or module grammar. Give enum bodies independent Await/Yield parameters and distinguish operand recovery from identifier type operators, preserving nested function and loop restrictions.
fix/parser-enum-await-context
1 hour ago
fix(es/parser): allow namespace await identifiers File-level await reservation rejects identifiers inside TypeScript namespaces. Scope namespace grammar while preserving inherited Await/Yield and strictness. Restore outer state and distinguish operand recovery from identifier type operators.
fix/parser-namespace-await-identifier
1 hour ago
fix(es/codegen): parenthesize typed arrow parameters Minified arrow functions can lose parentheses required by TypeScript. Keep them for typed or optional parameters, return annotations, and generic arrows.
fix/codegen-typed-arrow-parameters
5 hours ago
fix(es/parser): allow namespace await identifiers File-level await reservation rejects identifiers inside TypeScript namespaces. Scope namespace grammar and restore the outer context while inheriting Await/Yield and strictness. Use type-prefix lookahead for keyword recovery and preserve identifier operators, async loop restrictions, and literal keywords.
fix/parser-namespace-await-identifier
5 hours ago
fix(es/parser): isolate enum await context Enum members can reject await identifiers under enclosing async or module grammar. Parse enum bodies with independent Await/Yield parameters while retaining nested function and loop restrictions. Use type-prefix lookahead for keyword recovery and preserve identifier operators and literal keywords.
fix/parser-enum-await-context
5 hours ago
fix(es/codegen): preserve non-null token boundaries (#12504) **Description:** Minification can merge a TypeScript non-null assertion with the following operator: `x! == y` becomes `x!==y`, changing its meaning, while `x! === y` produces invalid syntax. Insert required whitespace before `==`, `===`, and assignment `=` when the emitted left operand ends in a non-null assertion. Includes a patch changeset for `swc_ecma_codegen` and `swc_core`. **Related issue (if exists):** - Close #12509
main
6 hours ago
fix(es/codegen): disambiguate TSX generic arrows (#12505) **Description:** Printing `<T,>(x: T) => x` can drop the trailing comma and produce TSX that is ambiguous with JSX. Emit the comma when a single type parameter has neither a constraint nor a default, and retain parameter parentheses in minified output. The emitter uses this syntax for both TypeScript and TSX, where the comma is valid. Includes a patch changeset for `swc_ecma_codegen` and `swc_core`. **Related issue (if exists):** - Close #12510
main
6 hours ago
docs: prohibit references to issue-linked PRs and external SWC forks (#12513) **Description:** Add a repository rule that prohibits using pull requests linked in issue descriptions or comments, and SWC forks owned by other people, as references. The rule prohibits reading or reusing their code, diffs, tests, or proposed implementations through GitHub, `gh`, local checkouts, or other tools. This PR adds only the approved rule to the General rule section of the root `AGENTS.md`, with no exceptions.
main
6 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/parser): isolate enum await context
#12506
2 hours ago
881dc15
fix/parser-enum-await-context
CodSpeed Performance Gauge
0%
fix(es/parser): allow namespace await identifiers
#12507
2 hours ago
b95786b
fix/parser-namespace-await-identifier
CodSpeed Performance Gauge
0%
fix(es/codegen): parenthesize typed arrow parameters
#12503
5 hours ago
db73243
fix/codegen-typed-arrow-parameters
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs