swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/typescript): Handle useDefineForClassFields with parameter properties - When useDefineForClassFields is true and there are parameter properties, split class field initialization into define + assign for correct execution order. This ensures field values are assigned AFTER parameter property assignments. - Added span-preserving functions for namespace var export transformation to improve sourcemap quality (preserves original identifier positions). - Removed unused functions to clean up dead code. Fixes issues-6985, rspack_10260 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kdy1/single-pass
11 hours ago
fix(es/typescript): Fix orphaned semicolons in control statements and keep empty imports - Add recursive `contains_ts_construct` helper to detect TypeScript constructs in nested control statements (if, while, for, etc.) - Filter orphaned semicolons after control statements containing TS constructs - In verbatimModuleSyntax mode, keep empty imports as side-effect imports (e.g., `import {} from "./foo.ts"` becomes `import "./foo.js"`) Fixes orphaned semicolons in patterns like: - `while(false) enum C {};` - `if(x) interface I {};` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kdy1/single-pass
19 hours ago
fix(es/es2017): Replace `this` in arrow functions during async-to-generator (#11450) Arrow functions don't have their own `this` context - they inherit `this` from their enclosing lexical scope. The `replace_this_in_expr` function was incorrectly skipping arrow functions, causing `this` to be undefined inside arrow functions within async functions in derived classes. Fixes #11447 Generated with [Claude Code](https://claude.ai/claude-code) --------- Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
main
1 day ago
fix(es/typescript): Visit getter/setter keys and filter orphaned semicolons - Visit key in getter/setter props to strip type assertions in computed property names - Filter empty statements that immediately follow TypeScript constructs (enums, namespaces, type declarations) to remove orphaned semicolons like `enum Foo { };` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kdy1/single-pass
1 day ago
Create lemon-sheep-rush.md
claude/issue-11447-20260113-1016
1 day ago
Revert "fix(es/typescript): Visit getter/setter keys, use ts_enum_is_mutable in tsc tests" This reverts commit 1f65fc03b939615270c478565d8bb0b326a76e3e.
kdy1/single-pass
2 days ago
fix(es/typescript): Fix enum merging with namespace/class/function When an enum merges with an existing namespace/class/function, it should use the merging pattern (IIFE without var declaration) rather than creating a new var declaration. Now correctly checks both `seen_enum_ids` and `seen_ns_ids` when determining if an enum should use the merging pattern. For example: ```typescript module enumdule {...} enum enumdule {...} ``` Now correctly produces `(function(enumdule) {...})(enumdule);` instead of `var enumdule = function(enumdule) {...}(enumdule || {});`. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kdy1/single-pass
2 days ago
ci: Collapse preivous `claude[bot]` PR review comments
main
2 days ago
Active Branches
refactor(es/typescript): Reimplement TypeScript pass
last run
11 hours ago
#11445
CodSpeed Performance Gauge
-6%
feat(es/minifier): Remove inlined IIFE arg and param
last run
2 days ago
#11446
CodSpeed Performance Gauge
+2%
refactor(es/typescript): Convert TypeScript transforms to VisitMutHook pattern
last run
6 days ago
#11432
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs