-
-
Notifications
You must be signed in to change notification settings - Fork 234
chore: use swc 47 #6625
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
chore: use swc 47 #6625
Conversation
✅ Deploy Preview for rsbuild ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR upgrades SWC plugins to version 47 and switches to a canary version of Rspack core for testing purposes.
Key Changes:
- Upgraded
@swc/plugin-prefreshfrom^10.0.0to^11.1.0 - Upgraded
@swc/plugin-remove-consolefrom^10.0.0to^11.0.0 - Replaced
@rspack/[email protected]with canary version@rspack-canary/[email protected]
Reviewed Changes
Copilot reviewed 10 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Updated lockfile with new SWC plugin versions (11.1.0) and added rspack-canary package entries with platform-specific bindings |
| packages/core/package.json | Changed @rspack/core dependency to use npm alias pointing to canary version |
| packages/plugin-preact/package.json | Updated @swc/plugin-prefresh from ^10.0.0 to ^11.1.0 |
| e2e/cases/swc-plugin/package.json | Updated @swc/plugin-remove-console from ^10.0.0 to ^11.0.0 |
| packages//tests/snapshots/.snap | Updated snapshot tests to reflect loader path changes from @rspack/core to @rspack-canary/core |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| "type": "module", | ||
| "dependencies": { | ||
| "@swc/plugin-remove-console": "^10.0.0" | ||
| "@swc/plugin-remove-console": "^11.0.0" |
Copilot
AI
Nov 21, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nitpick] The version specifier ^11.0.0 is inconsistent with other SWC plugin updates in this PR. The @swc/plugin-prefresh in packages/plugin-preact/package.json uses ^11.1.0, and the lockfile resolves this to 11.1.0. Consider updating to ^11.1.0 for consistency across the codebase.
| "@swc/plugin-remove-console": "^11.0.0" | |
| "@swc/plugin-remove-console": "^11.1.0" |

Summary
Bump Rspack / SWC and release canary for rstest.
Related Links
web-infra-dev/rspack#12253
Checklist