Skip to content

Conversation

Timeless0911
Copy link
Contributor

Summary

user config: string type of output.distPath
Rslib built-in config: object type of output.distPath

Merge them correctly in Rslib until Rsbuild support merge different type of output.distPath.

Related Links

Checklist

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

Copy link
Contributor

@Copilot 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 fixes the merging of output.distPath configuration by ensuring consistent object types. When users provide a string value for output.distPath, it's now converted to an object format before merging with Rslib's built-in object-type configuration.

  • Adds string-to-object conversion for output.distPath in the config composition logic
  • Includes comprehensive test coverage for both string and object distPath configurations

Reviewed Changes

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

File Description
packages/core/src/config.ts Implements the distPath conversion logic to handle string inputs
packages/core/tests/config.test.ts Adds test cases validating correct merging behavior for both formats

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@Copilot 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@Timeless0911 Timeless0911 merged commit 392f51f into main Oct 15, 2025
14 checks passed
@Timeless0911 Timeless0911 deleted the fix/merge branch October 15, 2025 12:05
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