swc-project
swc
BlogDocsChangelog

Performance History

Latest Results

feat(es/transformer): Merge `private_properties_in_object` (#11378) Co-authored-by: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
main
1 hour ago
Create shiny-lies-drive.md
kdy1/port-private-in-object
3 hours ago
Create shiny-lies-drive.md
kdy1/port-private-in-object
3 hours ago
lockfiel
kdy1/port-private-in-object
4 hours ago
fix(es/transformer): Fix missing var declaration in nullish coalescing with spreads (#11377) ## Summary Fixes #11375 The nullish coalescing operator (`??`) was missing the `var` declaration for the temporary variable when used in functions with spread parameters. ### Root Cause The bug was in the `exit_stmt` function in the nullish coalescing transformer. When exiting a statement, it was incorrectly restoring the statement pointer: - It popped the current statement from the stack - Then set `stmt_ptr` to the popped value (the statement we just exited) This meant `stmt_ptr` was pointing to the wrong statement when trying to inject variable declarations for nested expressions. ### The Fix Changed the `exit_stmt` function to correctly restore the parent statement pointer by using `last().copied()` on the stack after popping. ### Before ```javascript // Missing var declaration (_props_children = props.children) !== null && _props_children !== void 0 ? _props_children : props.label ``` ### After ```javascript var _props_children; (_props_children = props.children) !== null && _props_children !== void 0 ? _props_children : props.label ``` ## Test plan - āœ… Added test case for issue #11375 - āœ… All tests pass: `cargo test -p swc --test tsc` (4580 tests) - āœ… All tests pass: `cargo test -p swc --test projects` (860 tests) šŸ¤– Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Sonnet 4.5 (1M context) <noreply@anthropic.com>
main
4 hours ago
Create eight-chicken-sneeze.md
kdy1/fix-11375
4 hours ago
rename
kdy1/fix-transformer
5 hours ago

Active Branches

perf(es/minifier): optimize data structures of `ProgramData`
last run
18 hours ago
#11374
CodSpeed Performance Gauge
0%
#11292
CodSpeed Performance Gauge
0%
Ā© 2025 CodSpeed Technology
Home Terms Privacy Docs