swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/typescript): Fix TypeScript transform issues - Fix nested namespace IIFE generation by checking instantiation status instead of just checking if inner statements are empty. This handles cases like `export var Point: number;` which creates an instantiated namespace without producing statements. - Fix import equals inside namespaces to only emit code when the import is actually used as a value (not just in type positions). Added `collect_value_usages_in_block` helper to analyze value usages. - Only consider exported import equals as instantiating a namespace, not non-exported ones. - Preserve comments on enum declarations by using the original enum span for the generated VarDecl. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kdy1/single-pass
54 minutes ago
fix(es/typescript): Fix source map accuracy for namespace transforms - Use DUMMY_SP for namespace identifier in member expressions (via `Ident::from(id.to_id())`) - Preserve original identifier spans in property positions for accurate source maps - Use original TsModuleBlock span for BlockStmt body - Preserve last ES module declaration span for empty export to retain comments - Remove unused `Spanned` import Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
kdy1/single-pass
6 hours ago
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
2 days 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
2 days 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
2 days 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
2 days ago
Create lemon-sheep-rush.md
claude/issue-11447-20260113-1016
2 days ago
Revert "fix(es/typescript): Visit getter/setter keys, use ts_enum_is_mutable in tsc tests" This reverts commit 1f65fc03b939615270c478565d8bb0b326a76e3e.
kdy1/single-pass
3 days ago
Active Branches
refactor(es/typescript): Reimplement TypeScript pass
last run
54 minutes ago
#11445
CodSpeed Performance Gauge
-8%
feat(es/minifier): Remove inlined IIFE arg and param
last run
4 days ago
#11446
CodSpeed Performance Gauge
+2%
refactor(es/typescript): Convert TypeScript transforms to VisitMutHook pattern
last run
7 days ago
#11432
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs