swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/minifier): preserve spread args in new function expr Spread arguments have dynamic runtime arity, so a syntactic trailing argument after a spread cannot be classified as unused based only on the formal parameter count.\n\nSkip the new-function argument cleanup whenever the NewExpr argument list contains a spread, and add fixture plus execution coverage for a spread-before-trailing-argument case.
skku970412:fix-new-expr-useless-args-11684
48 minutes ago
fix(react-compiler): Remove React-like prefilter (#12007) **Description:** Remove SWC's React-like function prefilter and defer compilation eligibility to React Compiler. The prefilter duplicates React Compiler policy and rejects source before the compiler can evaluate it. For example: ```jsx function createFoo() { return function Foo() { "use memo"; return <div>hello, world</div>; }; } ``` React Compiler's Babel integration compiles the annotated inner function, but SWC previously returned the source unchanged because `createFoo` did not look React-like and the prefilter intentionally did not inspect nested function bodies. This pattern is not necessarily a React-blessed use of the directive nor is it conventional React. Regardless, the SWC adapter should not impose a stricter eligibility policy or limit valid uses of the React Compiler API. React Compiler should remain responsible for deciding what to compile. This PR removes the React-like heuristic while retaining the separate guard for unsupported resource-management declarations. It also adds a fixture covering the nested directive case. **Related issue (if exists):** N/A **Verification:** - `cargo fmt --all` - `cargo test -p swc_ecma_react_compiler` - `cargo clippy --all --all-targets -- -D warnings` --- _Prepared with assistance from OpenAI Codex 🤖._
main
2 hours ago
Merge branch 'main' into jordant/remove-react-prefilter
imjordanxd:jordant/remove-react-prefilter
3 hours ago
feat(test262): harden conformance runtime
refactor/test262
5 hours ago
refactor: remove direct rkyv dependencies (#12010) ## Summary - Remove SWC's direct `rkyv`, `bytecheck`, and `rancor` dependencies and archive implementations. - Keep plugin serialization on CBOR and refresh path-based plugin fixture lockfiles. - Retain only transitive rkyv usage from Wasmer and lightningcss. ## Validation - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - `cargo test` for all changed Rust crates - Plugin and host feature checks --- Closes https://github.com/swc-project/swc/issues/11991
main
8 hours ago
test(es/module): cover import assignment name collisions
refactor/module-transform
8 hours ago
chore: add rkyv removal changeset
kdy1:kdy1/remove-direct-rkyv
8 hours ago
refactor: remove direct rkyv dependencies
kdy1:kdy1/remove-direct-rkyv
8 hours ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(es/minifier): drop pure extra args of new function expr
#12012
1 hour ago
4705e06
skku970412:fix-new-expr-useless-args-11684
CodSpeed Performance Gauge
0%
fix(react-compiler): Remove React-like prefilter
#12007
3 hours ago
9dccf65
imjordanxd:jordant/remove-react-prefilter
CodSpeed Performance Gauge
0%
feat(test262): add official Test262 conformance runner
#12011
6 hours ago
55a2f22
refactor/test262
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs