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

Performance History

Latest Results

fix(es/parser): Keep recoverable errors from speculative TypeScript parses `try_parse_ts` set `Context::IgnoreError` for the whole speculative parse and only restored it afterwards, so every recoverable error emitted while building the AST was dropped even when the parse succeeded and its AST was kept. `export namespace Foo {` with no closing brace therefore parsed without a single diagnostic, while `namespace Foo {` correctly reported `Expected '}'`. `LexerCheckpoint` now records the length of both error buffers and truncates them in `checkpoint_load`, the same way `CapturingCheckpoint` rolls back captured tokens. With rollback available, `try_parse_ts` and `try_parse_ts_bool` no longer suppress errors: a discarded speculative parse discards its errors along with the rest of the checkpoint, while a kept one keeps them. Flow still suppresses, because it reports `_` in a type argument list as an error even where Flow allows it and un-suppressing surfaces those false positives. `parse_ident` no longer reports strict mode reserved words inside a type position. Parameter names of a function type are not bindings, so `(package: Package) => void` is valid; this was already reported for non-exported interfaces and was only hidden for exported ones by the suppression removed above.
dsherret:fix/try-parse-ts-error-rollback
19 minutes ago
fix(es/minifier): guard rest parameter inlining
dawNotPoi:fix/12126-for-head-inline
6 hours ago
Merge branch 'main' into fix/12126-for-head-inline
dawNotPoi:fix/12126-for-head-inline
7 hours ago
fix(es/minifier): guard all IIFE parameter inlining
dawNotPoi:fix/12126-for-head-inline
7 hours ago
chore(es/minifier): Update test
Austaras:main
15 hours ago

Latest Branches

CodSpeed Performance Gauge
0%
fix(es/parser): Keep recoverable errors from speculative TypeScript parses#12137
51 minutes ago
a0b6c47
dsherret:fix/try-parse-ts-error-rollback
CodSpeed Performance Gauge
0%
6 hours ago
479d227
dawNotPoi:fix/12126-for-head-inline
CodSpeed Performance Gauge
0%
14 hours ago
5a7faa1
Austaras:main
© 2026 CodSpeed Technology
Home Terms Privacy Docs