chore: remove @rsbuild/plugin-webpack-swc package#6775
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
✅ 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.
Pull request overview
This PR removes the legacy @rsbuild/plugin-webpack-swc package from the Rsbuild repository and reorganizes the webpack provider package structure. The plugin, which was previously used for Rsbuild's webpack mode, has limited use cases and depends on an unmaintained package (@modern-js/swc-plugins). The plugin will continue to receive bug fixes on a separate branch if needed.
Key changes:
- Removed the entire
@rsbuild/plugin-webpack-swcpackage frompackages/compat/plugin-webpack-swc - Moved
@rsbuild/webpackfrompackages/compat/webpacktopackages/webpack - Removed the
packages/compatdirectory structure - Updated workspace configuration and dependencies across the monorepo
Reviewed changes
Copilot reviewed 29 out of 59 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| pnpm-lock.yaml | Updated dependency references: changed workspace link to published version (1.1.2) for plugin-webpack-swc, relocated webpack package entries from compat to root packages folder |
| packages/webpack/tsconfig.json | Updated reference path from ../../core to ../core to reflect new location |
| packages/webpack/tests/* | Added new test files (plugin.test.ts, initConfigs.test.ts, environment.test.ts, default.test.ts, helper.ts) and snapshots for webpack package |
| packages/webpack/src/* | Added complete source implementation including provider, plugin, build, compiler creation, config generation, and progress helpers |
| packages/webpack/package.json | Updated repository directory path from packages/compat/webpack to packages/webpack |
| packages/webpack/README.md | Added documentation for the webpack provider package |
| packages/compat/* | Removed all files from plugin-webpack-swc and webpack subdirectories, and removed compat README |
| package.json | Removed packages/compat/* from workspaces, updated sort-package-json script |
| examples/webpack/* | Updated to remove plugin-webpack-swc dependency and import, changed import to use relative dist path |
| e2e/package.json | Changed plugin-webpack-swc from workspace dependency to published version 1.1.2 |
| e2e/cases/polyfill/core-js-basic/index.test.ts | Removed comment about plugin-webpack-swc not supporting groupBy |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Summary
@rsbuild/plugin-webpack-swcis a legacy package. It was previously used for Rsbuild’s webpack mode. This plugin now has very limited use cases, and its dependency@modern-js/swc-pluginshas been unmaintained for over a year. Therefore, I removed this plugin from the Rsbuild repository to simplify the codebase.The plugin will continue to receive bug fixes, if needed, on the @rsbuild/plugin-webpack-swc branch.
Checklist