swc-project
swc
Blog
Docs
Changelog
Blog
Docs
Changelog
Overview
Branches
Benchmarks
Runs
Performance History
Latest Results
fix(es/module): Rewrite SystemJS transform
refactor/systemjs
1 hour ago
refactor(es/module): Align module transform records with spec terms (#11992) **Description:** This PR refactors the shared CommonJS/AMD/UMD module-lowering collection layer to use terminology and boundaries closer to ECMAScript module records. The old `ModuleDeclStrip` abstraction mixed declaration stripping, module request collection, export collection, and emitter-facing naming. This change renames and reshapes that layer into `module_record.rs` with clearer concepts: - `ModuleRecordCollector` - `RequestedModules` / `RequestedModule` - `ModuleRecordEntry` - `ModuleRequestUsage` - `LocalExportEntries` - `ModuleRecordEntryReducer` - `ExportBinding` CJS, AMD, and UMD now consume the same module-record-oriented data model while preserving their existing emit behavior. The format-specific passes still own wrapper shape, dependency emission, interop helper application, `export =` handling, and import-reference rewriting. This is intended to be a behavior-preserving refactor. The main goal is to make the transform pipeline easier to reason about and maintain before future module interop work. The README was also expanded with diagrams and a short walkthrough of the transform flow. Verification: - `cargo fmt --all` - `cargo test -p swc_ecma_transforms_module` - `cargo clippy --all --all-targets -- -D warnings`
main
3 hours ago
test(core): update systemjs snapshot
refactor/systemjs
9 hours ago
chore: update test cases
refactor/systemjs
10 hours ago
docs: Correct `typescript_import_rewriter` doc comment Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
SimenB:rwrite-extensions
11 hours ago
fix(es/module): Rewrite SystemJS transform
refactor/systemjs
11 hours ago
fix(es/module): Rewrite SystemJS transform
refactor/systemjs
11 hours ago
fix(es/module): Rewrite SystemJS transform
refactor/systemjs
11 hours ago
Latest Branches
CodSpeed Performance Gauge
+2%
fix(es/module): Rewrite SystemJS transform
#11996
1 day ago
80c61f0
refactor/systemjs
CodSpeed Performance Gauge
0%
fix(es/module): Rewrite `.tsx` imports to `.js` unless JSX is preserved
#11995
11 hours ago
be969bd
SimenB:rwrite-extensions
CodSpeed Performance Gauge
0%
refactor(es/module): Align module transform records with spec terms
#11992
1 day ago
5b7f556
refactor/es-module-records
© 2026 CodSpeed Technology
Home
Terms
Privacy
Docs