Skip to content

docs: clarify dts.build requirement#1482

Merged
Timeless0911 merged 2 commits intomainfrom
docs/dts-build-dependencies-clarification
Feb 12, 2026
Merged

docs: clarify dts.build requirement#1482
Timeless0911 merged 2 commits intomainfrom
docs/dts-build-dependencies-clarification

Conversation

@Timeless0911
Copy link
Copy Markdown
Contributor

@Timeless0911 Timeless0911 commented Feb 12, 2026

Summary

Clarify that the dts.build option only works when dts.bundle is false.

Related Links

Checklist

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

Copilot AI review requested due to automatic review settings February 12, 2026 08:05
@Timeless0911 Timeless0911 changed the title docs: clarify dts.build requirement docs: clarify dts.build requirement Feb 12, 2026
Copy link
Copy Markdown
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

Clarifies documentation for the dts.build option to note it only works when declaration bundling is disabled (dts.bundle = false), aligning user guidance with actual plugin behavior.

Changes:

  • Add a note in EN docs that dts.build can only be used when dts.bundle is false.
  • Add the same clarification in ZH docs.
  • Update rsbuild-plugin-dts README to include the same restriction and reminder about declarationDir / outDir.

Reviewed changes

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

File Description
website/docs/zh/config/lib/dts.mdx Adds a ZH note that dts.build requires dts.bundle = false and reiterates tsconfig output dir requirements.
website/docs/en/config/lib/dts.mdx Adds an EN note that dts.build requires dts.bundle = false and reiterates tsconfig output dir requirements.
packages/plugin-dts/README.md Documents that build is only valid when bundle is false, plus tsconfig output dir requirement.

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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Timeless0911 Timeless0911 merged commit e8b3bfc into main Feb 12, 2026
11 checks passed
@Timeless0911 Timeless0911 deleted the docs/dts-build-dependencies-clarification branch February 12, 2026 08:51
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