Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Update createRsbuild's config parameter, the parameter name was changed to be more concise.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings November 7, 2025 08:17
@netlify
Copy link

netlify bot commented Nov 7, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit d892060
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/690de5a27cd69000080e2fc7
😎 Deploy Preview https://deploy-preview-6529--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: 60 (🟢 up 3 from production)
Accessibility: 97 (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 updates documentation to reflect the API change in Rsbuild 1.6 where the rsbuildConfig option in createRsbuild() has been renamed to config. The documentation updates span both English and Chinese versions, covering guides, API references, configuration docs, and release notes.

  • Updated all code examples to use config instead of rsbuildConfig when calling createRsbuild()
  • Added deprecation notices explaining that config is the new option introduced in Rsbuild 1.6
  • Updated TypeScript type definitions in documentation to reflect the new API signature

Reviewed Changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
website/docs/zh/guide/advanced/ssr.mdx Updated SSR guide example to use config
website/docs/zh/guide/advanced/environments.mdx Updated environments guide example to use config
website/docs/zh/config/server/middleware-mode.mdx Updated middleware mode example to use config
website/docs/zh/community/releases/v0-5.mdx Updated v0.5 release notes example to use config
website/docs/zh/api/javascript-api/instance.mdx Updated instance API examples to use config
website/docs/zh/api/javascript-api/dev-server-api.mdx Updated dev server API example to use config
website/docs/zh/api/javascript-api/core.mdx Updated core API documentation with full explanation of new config option and deprecation notice
website/docs/en/guide/advanced/ssr.mdx Updated English SSR guide example to use config
website/docs/en/guide/advanced/environments.mdx Updated English environments guide example to use config
website/docs/en/config/server/middleware-mode.mdx Updated English middleware mode example to use config
website/docs/en/community/releases/v0-5.mdx Updated English v0.5 release notes example to use config
website/docs/en/api/javascript-api/instance.mdx Updated English instance API examples to use config
website/docs/en/api/javascript-api/dev-server-api.mdx Updated English dev server API example to use config
website/docs/en/api/javascript-api/core.mdx Updated English core API documentation with full explanation of new config option and deprecation notice

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@chenjiahan chenjiahan merged commit ed09104 into main Nov 8, 2025
11 checks passed
@chenjiahan chenjiahan deleted the config_param_1107 branch November 8, 2025 03:10
@chenjiahan chenjiahan mentioned this pull request Nov 12, 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.

2 participants