Skip to content

chore: remove @rsbuild/plugin-webpack-swc package#6775

Merged
chenjiahan merged 3 commits intomainfrom
remove_webpack_swc_1214
Dec 15, 2025
Merged

chore: remove @rsbuild/plugin-webpack-swc package#6775
chenjiahan merged 3 commits intomainfrom
remove_webpack_swc_1214

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

@rsbuild/plugin-webpack-swc is 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-plugins has 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

  • Tests updated (or not required).
  • Documentation updated (or not required).

Copilot AI review requested due to automatic review settings December 14, 2025 14:07
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 14, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit fbcc1bc
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/693f759615761300087cfd25
😎 Deploy Preview https://deploy-preview-6775--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 57 (🔴 down 10 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Contributor

Copilot AI left a 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 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-swc package from packages/compat/plugin-webpack-swc
  • Moved @rsbuild/webpack from packages/compat/webpack to packages/webpack
  • Removed the packages/compat directory 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.

Comment thread examples/webpack/rsbuild.config.ts Outdated
chenjiahan and others added 2 commits December 15, 2025 10:12
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@chenjiahan chenjiahan merged commit a004cea into main Dec 15, 2025
11 checks passed
@chenjiahan chenjiahan deleted the remove_webpack_swc_1214 branch December 15, 2025 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants