Skip to content

Conversation

@chenjiahan
Copy link
Member

Summary

Simplify the configuration parameter name of createRsbuild, see web-infra-dev/rsbuild#6245

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).
Copilot AI review requested due to automatic review settings November 4, 2025 09:07
@Timeless0911 Timeless0911 enabled auto-merge (squash) November 4, 2025 09:08
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 the API call to Rsbuild's createRsbuild function to align with a breaking change in @rsbuild/core, where the parameter property name changed from rsbuildConfig to config.

Key Changes:

  • Updated all createRsbuild calls from rsbuildConfig to config property
  • Updated test utilities to use the new config property name
  • Reformatted one line in test utilities for consistency

Reviewed Changes

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

File Description
packages/core/src/cli/build.ts Updated createRsbuild parameter from rsbuildConfig to config
packages/core/src/cli/inspect.ts Updated createRsbuild parameter from rsbuildConfig to config
packages/core/src/cli/mf.ts Updated createRsbuild parameter from rsbuildConfig to config
tests/scripts/rsbuild.ts Updated test utilities to use config instead of rsbuildConfig and reformatted config assignment

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

@Timeless0911 Timeless0911 merged commit 2326c3c into main Nov 4, 2025
23 checks passed
@Timeless0911 Timeless0911 deleted the rename_options_1104 branch November 4, 2025 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants