swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
refactor: remove unnecessary raw pattern parsing
chore/update-forked-react-compiler
6 hours ago
chore: Add changeset for react compiler update
chore/update-forked-react-compiler
7 hours ago
refactor: Remove production tracing hooks (#11945) **Description:** This removes the production tracing implementation paths from SWC while preserving the JS and CLI compatibility surfaces as deprecated no-ops. - Delete the `swc_timer` and `swc_trace_macro` crates. - Remove `swc_core`'s `trace_macro` feature and re-export. - Remove timer and `#[swc_trace]` usages from Rust crates. - Gate remaining tracing spans/events/instrumentation so they do not run in release builds. - Keep JS, Node binding, and CLI trace APIs available as deprecated no-ops. - Remove unused tracing subscriber/chrome dependencies and refresh committed lockfiles. **BREAKING CHANGE:** The Rust crates `swc_timer` and `swc_trace_macro` are removed. The `swc_core/trace_macro` feature is removed instead of being kept as a compatibility alias. JS and CLI trace entrypoints remain available but are deprecated no-ops and no trace output files are produced. **Validation:** - `git submodule update --init --recursive` - `cargo fmt --all` - `cargo check --all --all-targets` - `cargo check --release --all --all-targets` - `cargo clippy --all --all-targets -- -D warnings` - `pnpm install --frozen-lockfile` - `(cd packages/core && pnpm build:dev && pnpm test)` - `(cd packages/minifier && pnpm build:dev && pnpm test)` - Verified no remaining `swc_timer`, `swc_trace_macro`, `trace_macro`, `timer!`, or `#[swc_trace]` references in source/manifests/lockfiles. Broad `cargo test` was attempted and stopped on unrelated/environment issues: an existing Flow fixture failure in `swc`, missing local `deno` for `swc_bundler`, and a helper fixture diff in `swc_ecma_transforms_base`. **Related issue (if exists):** N/A
main
8 hours ago
chore(es/react-compiler): Update forked react compiler to 0.2.0
chore/update-forked-react-compiler
10 hours ago
Add tracing removal changeset
kdy1/remove-production-tracing
11 hours ago
fix(es/react-compiler): Scope ClassStaticBlock and TsModuleBlock as var boundaries (#11943) **Description:** This PR fixes scope analysis edge cases in the React Compiler where `var` declarations and TypeScript constructs were incorrectly hoisted or leaked across scope boundaries. **Design Notes:** `declare` and `global` are TypeScript type-system annotations that don't affect runtime emission, yet they still create declarations that downstream code can reference. The analyzer must walk their bodies normally and create bindings accordingly, rather than skipping traversal. **Changes:** - **Class static blocks as `var` boundaries** `var` declarations inside `static { }` blocks are now scoped to the block itself, matching ECMAScript semantics, instead of leaking into the enclosing function. - **TypeScript namespace / module scopes** `namespace` and `module` bodies now create proper `TsModuleBlock` scopes. Their members are no longer incorrectly hoisted to the Program scope. - **Consistent binding for `declare enum`** `declare enum` is now registered as a local binding so references resolve correctly. - **Refactoring** Renamed `enclosing_function_scope()` → `enclosing_var_scope()` and updated `ScopeFlags` definitions to make scope-kind checks clearer. **Known Limitations:** **TypeScript namespace merging is not yet supported.** The scope collector treats each `namespace`/`module` declaration as an isolated lexical scope. Exported members in one block are not visible to later merged blocks, and they are modeled as plain local bindings. This is a similar issue described in #11607. **BREAKING CHANGE:** <!-- If this PR introduces a breaking change, it must contain a notice for it to be included in the CHANGELOG. Add description or remove entirely if not breaking. You may need to update `MIGRATION.md` for the breaking changes. --> **Related issue (if exists):** - https://github.com/swc-project/swc/pull/11917#discussion_r3410499589
main
11 hours ago
Remove production tracing hooks
kdy1/remove-production-tracing
11 hours ago
chore: Add changeset for react compiler scope fix
magic-akari:fix/react-compiler-scope
12 hours ago
Latest Branches
CodSpeed Performance Gauge
+2%
chore(es/react-compiler): Update forked react compiler to 0.2.0
#11946
6 hours ago
96be5a9
chore/update-forked-react-compiler
CodSpeed Performance Gauge
+6%
refactor: Remove production tracing hooks
#11945
11 hours ago
bbf255a
kdy1/remove-production-tracing
CodSpeed Performance Gauge
-2%
fix(es/react-compiler): Scope ClassStaticBlock and TsModuleBlock as var boundaries
#11943
12 hours ago
21230c1
magic-akari:fix/react-compiler-scope
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs