Conversation
There was a problem hiding this comment.
Pull request overview
Updates the workspace’s SWC (and related SWC ecosystem) dependencies to newer versions and adjusts internal integration points so Rspack continues to parse/transform code correctly and tests reflect the new output.
Changes:
- Bump
swc_coreto58.0.3and align relatedswc*crates plusswc_experimental_*to0.6.0. - Update
ConcatenatedModule’sswc_experimentalparsing flow to match the new parser/AST APIs (explicitAst,StringAllocator, updatedParser::new_from/Lexer::newwiring). - Refresh stats API test expectations (hash/output text) to match new SWC-generated results.
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
Cargo.toml |
Bumps SWC family and swc_experimental_* versions in workspace deps. |
Cargo.lock |
Lockfile refresh reflecting new SWC versions and transitive dependency graph updates. |
crates/rspack_workspace/src/generated.rs |
Updates the generated SWC core version string exposed by the workspace. |
crates/rspack_core/src/concatenated_module.rs |
Adapts concatenation parsing/semantic analysis to updated swc_experimental APIs. |
tests/rspack-test/statsAPICases/basic.js |
Updates expected stats hash/output string after SWC bump. |
tests/rspack-test/statsAPICases/exports.js |
Updates expected stats hashes after SWC bump. |
tests/rspack-test/statsAPICases/ids.js |
Updates expected stats hash after SWC bump. |
tests/rspack-test/statsAPICases/with-query.js |
Updates expected stats hashes after SWC bump. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
📦 Binary Size-limit
🎉 Size decreased by 14.88KB from 48.90MB to 48.89MB (⬇️0.03%) |
Rsdoctor Bundle Diff Analysis
Found 5 projects in monorepo, 4 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 react-10kPath:
📦 Download Diff Report: react-10k Bundle Diff 📁 react-1kPath:
📦 Download Diff Report: react-1k Bundle Diff 📁 react-5kPath:
📦 Download Diff Report: react-5k Bundle Diff 📁 ui-componentsPath:
📦 Download Diff Report: ui-components Bundle Diff Generated by Rsdoctor GitHub Action |
Merging this PR will not alter performance
Comparing Footnotes
|
* chore: bump swc_core and swc_exp * fix: parser api breaking * chore: update snapshots * refactor: use get_atom
Summary
Atomto reduce the compatibility costChecklist