swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/minifier): Preserve spread
cuyl:handle-undefined-args
2 hours ago
fix(es/minifier): Preserve spread
cuyl:handle-undefined-args
4 hours ago
fix(es/helpers): Fix `_object_without_properties` crash on primitive values (#11571) **Description:** Fix `_object_without_properties` helper crash when destructuring primitive values with rest spread. When using object rest spread on a primitive value (e.g., `const { length, ...rest } = "hello"`), the transpiled code throws `TypeError: Reflect.ownKeys called on non-object`. **Root Cause** PR #11338 introduced `Reflect.ownKeys()` to avoid extra Proxy trap calls, but `Reflect.ownKeys` strictly requires an object argument per spec, unlike `Object.getOwnPropertyNames` which auto-boxes primitives. **Solution** Wrap `source` with `Object()` before calling `Reflect.ownKeys()` to auto-box primitives: ```javascript sourceKeys = Reflect.ownKeys(Object(source)); ``` This matches the ECMAScript [CopyDataProperties](https://tc39.es/ecma262/multipage/abstract-operations.html#sec-copydataproperties) behavior, where the internal `[[OwnPropertyKeys]]` method is called on the source after implicit object conversion. **Related issue:** - Closes #11570
main
5 hours ago
fix(es/minifier): Handle `undefined` args Closes #11572
cuyl:handle-undefined-args
11 hours ago
chore: update test cases
magic-akari:fix/issue-11570
1 day ago
test(swc): update jsx multiline attr fixture outputs
kdy1/fix-11550-jsx-attr-newline
3 days ago
fix(es/react): Preserve first-line leading whitespace with entities (#11568) ## Summary - preserve first-line leading whitespace in entity-aware JSX text handling - update `jsx_text_to_str_with_entity_mask` to trim leading whitespace only after the first line - add regression test and snapshot for entity + multiline case from issue #11541 ## Testing - UPDATE=1 cargo test -p swc_ecma_transforms_react react_should_preserve_first_line_leading_whitespace_before_entity -- --nocapture - cargo test -p swc_ecma_transforms_react react_should_preserve_first_line_leading_whitespace_before_entity - cargo test -p swc_ecma_transforms_react - cargo fmt --all - cargo clippy -p swc_ecma_transforms_react --all-targets -- -D warnings Closes #11541
main
3 days ago
Update changeset to include new patches Added swc_core and swc_ecma_transforms_react to changeset.
kdy1/fix-issue-11541-jsx-leading-whitespace
3 days ago
Active Branches
fix(es/minifier): Handle `undefined` args
last run
2 hours ago
#11573
CodSpeed Performance Gauge
0%
fix(es/react): Preserve newlines in quoted JSX attrs
last run
3 days ago
#11569
CodSpeed Performance Gauge
0%
fix(ts): rewrite unresolved refs in merged namespaces
last run
3 days ago
#11562
CodSpeed Performance Gauge
0%
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs