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

Performance History

Latest Results

fix(es/parser): Respect line breaks after `declare` TypeScript applies ASI when a line break follows `declare`, so declare class C {} is the expression statement `declare;` followed by a regular class. SWC parsed it as an ambient class, which the TypeScript strip then removes, and rejected `declare\nfunction f() {}` with "An implementation cannot be declared in ambient contexts". Return early from the `declare` arm of `parse_ts_expr_stmt` when the next token is on a new line, like the `module` arm already does. Flow is left unchanged.
Dev-next-gen:fix/es-parser-declare-line-break
3 hours ago
chore: Add changeset
codex/remove-export-default-from-benchmark
2 days ago
docs(es/minifier): Clarify semantic preservation policy (#12349) **Description:** Clarify the minifier implementation and review policy to prioritize correctness for common usage, performance, and maintainable code. Do not require additional defensive logic solely for monkey-patched globals or built-ins, unusual `arguments.length` reassignment, direct-eval bindings, or dynamic name resolution in `with`. Keep ordinary lexical shadowing, side effects, and exceptions within the supported assumptions in scope. Require reviewers to demonstrate an impact on common usage or an explicit support contract for mandatory fixes. Align execution-test guidance with this policy without authorizing hidden failures or blanket removal of existing handling or tests. The policy change is limited to the minifier AGENTS.md; a required patch changeset is included. No runtime code or tests change. Validation: - Passed: `cargo fmt --all`, `git diff --check`, `cargo test -p swc_ecma_minifier`, and minifier `./scripts/exec.sh`. - The crate tests exited successfully but emitted missing `terser` module errors from a helper script. - `cargo clippy --all --all-targets -- -D warnings` failed on the existing unused `noexec_mount_in` function in `crates/swc_native_addon/src/platform/unix.rs:117`. **Related issue (if exists):** Motivated by the review discussions in #12343: - https://github.com/swc-project/swc/pull/12343#discussion_r3988684574 - https://github.com/swc-project/swc/pull/12343#discussion_r3988684592 - https://github.com/swc-project/swc/pull/12343#discussion_r3988684587
main
2 days ago

Latest Branches

CodSpeed Performance Gauge
0%
fix(es/parser): Respect line breaks after `declare`#12353
3 hours ago
51f4a8d
Dev-next-gen:fix/es-parser-declare-line-break
CodSpeed Performance Gauge
-9%
CodSpeed Performance Gauge
0%
2 days ago
c739ae1
codex/remove-export-default-from-benchmark
© 2026 CodSpeed Technology
Home Terms Privacy Docs