docs: improve Rspack configuration examples#6707
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 improves the Rspack configuration documentation by replacing a single generic example with three more detailed, concrete examples showing different ways to configure Rspack plugins.
- Adds an example for registering a built-in Rspack plugin (
CircularDependencyRspackPlugin) - Adds an example for registering a community webpack plugin (
sentryWebpackPlugin) - Clarifies that the function form modifies the "built-in" Rspack config
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| website/docs/en/guide/configuration/rspack.mdx | Splits single plugin example into three detailed examples with imports and proper context |
| website/docs/zh/guide/configuration/rspack.mdx | Chinese translation of the same documentation improvements |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

Summary
Add more detailed examples for registering both built-in Rspack plugins and community webpack plugins.
Related Links
CircularDependencyRspackPlugin#6705Checklist