Skip to content

Conversation

@Timeless0911
Copy link
Contributor

@Timeless0911 Timeless0911 commented Dec 11, 2025

Summary

improve documentation for dts.alias

Related Links

close: #1390

Checklist

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

Copilot AI review requested due to automatic review settings December 11, 2025 09:16
@netlify
Copy link

netlify bot commented Dec 11, 2025

Deploy Preview for rslib ready!

Name Link
🔨 Latest commit 638a4cc
🔍 Latest deploy log https://app.netlify.com/projects/rslib/deploys/693a8d243497bd0008f08ab7
😎 Deploy Preview https://deploy-preview-1391--rslib.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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 enhances the documentation for dts.alias configuration by clarifying how path aliases work and providing concrete examples of their behavior. The changes address issue #1390 by making the documentation more comprehensive and easier to understand.

Key Changes:

  • Clarified that path aliases in dts.alias should be relative to compilerOptions.baseUrl
  • Added code examples demonstrating import path redirection behavior when redirect.dts.path is enabled

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 Updated Chinese documentation with clarification about baseUrl and added redirection example
website/docs/en/config/lib/dts.mdx Updated English documentation with clarification about baseUrl and added redirection example
packages/plugin-dts/README.md Updated plugin README with clarification about baseUrl and added redirection example

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

@Timeless0911 Timeless0911 enabled auto-merge (squash) December 11, 2025 09:23
@Timeless0911 Timeless0911 merged commit c130a93 into main Dec 11, 2025
16 checks passed
@Timeless0911 Timeless0911 deleted the docs/dts-alias branch December 11, 2025 09:30
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.

[Bug]: dts.alias does not work as expected

3 participants