swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(cli): skip mkdir when --out-file targets the current directory (#11720) When `--out-file file.min.js` is used without a directory component, `Path::parent()` returns an empty string. Calling `create_dir_all("")` fails on Windows with EEXIST. Skip the directory creation when the parent path is empty. Closes #11717 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com> Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
main
12 hours ago
fix(cli): skip mkdir when --out-file targets the current directory When `--out-file file.min.js` is used without a directory component, `Path::parent()` returns an empty string. Calling `create_dir_all("")` fails on Windows with EEXIST. Skip the directory creation when the parent path is empty since the current directory always exists. Closes #11717 Co-authored-by: Donny/강동윤 <kdy1@users.noreply.github.com>
claude/issue-11717-20260320-0904
12 hours ago
react-compiler: advance upstream fixture parity
kdy1/react-compiler-parity-step1
13 hours ago
test(minifier): add issue 11645 call-arity regression fixtures
Austaras:main
16 hours ago
feat(es/react-compiler): advance upstream fixture parity pipeline (#11716) ## Summary This is a strict-upstream parity follow-up for `swc_ecma_react_compiler` against the current fixture manifest baseline (`facebook/react@c80a07509582daadf275f36ffe7a88c3b12e9db4`). - align fixture harness phase execution around manifest/root handling (without phase dir duplication) - advance pipeline stage ordering in `program.rs` toward upstream `Pipeline.ts` shape - split no-op module shells into concrete pass files across `inference` / `ssa` / `optimization` / `validation` - expand constant propagation and simple DCE coverage for assignment/update normalization and alias-aware cases - tune reactive scope lowering and memoization shaping to improve fixture parity ## Scope notes - crate parity only (no `@swc/core` surface expansion in this PR) - fixture expected outputs remain upstream source-of-truth (no local output rewrites) ## Verification - `git submodule update --init --recursive` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - `cargo test -p swc_ecma_react_compiler` - `RUN_UPSTREAM_FIXTURES=1 cargo test -p swc_ecma_react_compiler fixture_cases_upstream -- --nocapture` (fails on current known mismatch) ## Known remaining mismatch - upstream strict fixture: `createElement-freeze` - current gap: memo-block decomposition/freeze-shape parity around `React.createElement` + `shallowCopy(childProps)` ordering
main
24 hours ago
feat(react-compiler): advance upstream fixture parity pipeline
kdy1/react-compiler-upstream-parity-pipeline-followup
1 day ago
fix(es/module): avoid rewriting unknown relative extensions (#11713) ## Summary This PR fixes `jsc.rewriteRelativeImportExtensions` rewriting unknown relative extensions to `.js`. Previously, specifiers like `./index.legacy` were rewritten to `./index.js` because unknown extensions fell through to a default rewrite. This diverged from TypeScript behavior. This change makes rewriting extension-aware and only rewrites supported extensions: - `ts | js -> js` - `tsx | jsx -> jsx` - `mts | mjs -> mjs` - `cts | cjs -> cjs` - `json -> json` - unknown extensions -> no rewrite Also adds fixture coverage for issue `#11644` to assert: - `import "./index.legacy"` stays unchanged - `import "./index.legacy.ts"` rewrites to `import "./index.legacy.js"` Closes #11644. ## Testing - `git submodule update --init --recursive` - `cargo test -p swc --test projects ts_id_tests__typescript__rewrite_relative_import_specifier__issue_11644__input -- --exact --ignored --nocapture` - `cargo test -p swc --test projects rewrite_relative_import_specifier -- --ignored` - `cargo fmt --all` - `cargo clippy --all --all-targets -- -D warnings` - `cargo test -p swc_ecma_transforms_module` `cargo test -p swc` was also run; unrelated `tests/source_map` cases failed in this environment because Node module `sourcemap-validator` is missing.
main
1 day ago
Create smooth-games-knock.md
kdy1/fix-11644-rewrite-relative-import-extensions
1 day ago
Latest Branches
CodSpeed Performance Gauge
0%
fix(cli): skip mkdir when --out-file targets the current directory
#11720
19 hours ago
b3c1f62
claude/issue-11717-20260320-0904
CodSpeed Performance Gauge
0%
react-compiler: advance SWC upstream fixture parity
#11718
14 hours ago
743fcd8
kdy1/react-compiler-parity-step1
CodSpeed Performance Gauge
0%
feat(es/minifier): Remove useless arguments for non inlined callee
#11645
16 hours ago
de7f217
Austaras:main
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs