Skip to content

Comments

feat: better error message for manualChunks#4530

Merged
shulaoda merged 4 commits intorolldown:mainfrom
sapphi-red:feat/better-error-message-for-manual-chunks
May 13, 2025
Merged

feat: better error message for manualChunks#4530
shulaoda merged 4 commits intorolldown:mainfrom
sapphi-red:feat/better-error-message-for-manual-chunks

Conversation

@sapphi-red
Copy link
Member

Description

This PR makes the following error message to be output if ouput.manualChunks was specified.

manualChunks is not supported. Please use advancedChunks instead

Copilot AI review requested due to automatic review settings May 13, 2025 10:02
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 error messaging for configuration of the manualChunks option by explicitly disallowing it and pointing users toward using advancedChunks instead.

  • Updated the validator to disallow manualChunks using v.never with a custom error message.
  • Ensured consistency by keeping advancedChunks as a valid option.

@sapphi-red sapphi-red marked this pull request as draft May 13, 2025 10:17
@sapphi-red sapphi-red marked this pull request as ready for review May 13, 2025 10:46
@hyf0 hyf0 requested a review from shulaoda May 13, 2025 11:07
Copy link
Member

@hyf0 hyf0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @shulaoda cc

@shulaoda shulaoda added this pull request to the merge queue May 13, 2025
Merged via the queue into rolldown:main with commit 5b8c925 May 13, 2025
24 checks passed
@sapphi-red sapphi-red deleted the feat/better-error-message-for-manual-chunks branch May 14, 2025 04:26
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.

3 participants