Skip to content

docs: improve Rspack configuration examples#6707

Merged
chenjiahan merged 4 commits intomainfrom
rspack_example_1204
Dec 4, 2025
Merged

docs: improve Rspack configuration examples#6707
chenjiahan merged 4 commits intomainfrom
rspack_example_1204

Conversation

@chenjiahan
Copy link
Member

Summary

Add more detailed examples for registering both built-in Rspack plugins and community webpack plugins.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings December 4, 2025 13:58
@chatgpt-codex-connector
Copy link

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

netlify bot commented Dec 4, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 434be38
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/6931954fb913020008cc0d9d
😎 Deploy Preview https://deploy-preview-6707--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: 52 (🔴 down 15 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
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 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.

chenjiahan and others added 2 commits December 4, 2025 22:05
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@chenjiahan chenjiahan merged commit b5732b3 into main Dec 4, 2025
11 checks passed
@chenjiahan chenjiahan deleted the rspack_example_1204 branch December 4, 2025 23:32
@chenjiahan chenjiahan mentioned this pull request Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant