fix(cli): use rspack-merge for config extends#13869
Conversation
📦 Binary Size-limit
🙈 Size remains the same at 61.89MB |
Deploying rspack with
|
| Latest commit: |
5ff35d4
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://3d34b8ea.rspack-v2.pages.dev |
| Branch Preview URL: | https://issue-13732.rspack-v2.pages.dev |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 46f935783d
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Rsdoctor Bundle Diff AnalysisFound 6 projects in monorepo, 5 projects with changes. 📊 Quick Summary
📋 Detailed Reports (Click to expand)📁 popular-libsPath:
📦 Download Diff Report: popular-libs Bundle Diff 📁 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 |
add test for file protocol, require.resolve, JSON config, and multiple config extends add recursive extends detection to prevent circular dependencies update tests to cover all new extends scenarios
Summary
fix #13732
webpack-cliusewebpack-mergefor resolving config extends.rspack-mergeimplements special handling for Rspack semantics, such as deduplicating loaders by theirtestrules.cleverMergeis a generic utility function.For the CLI extends scenario,rspack-mergeis indeed the more suitable option.Related links
#13732
https://webpack.js.org/configuration/extending-configurations/
Checklist