Skip to content

docs: add section on vite-tsconfig-paths support#5593

Merged
chenjiahan merged 1 commit intomainfrom
vite_tsconfig_docs_0714
Jul 14, 2025
Merged

docs: add section on vite-tsconfig-paths support#5593
chenjiahan merged 1 commit intomainfrom
vite_tsconfig_docs_0714

Conversation

@chenjiahan
Copy link
Copy Markdown
Member

Summary

Provide information about Rsbuild's built-in support for TypeScript path aliases and the removal of the vite-tsconfig-paths dependency.

Checklist

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

Copilot AI review requested due to automatic review settings July 14, 2025 14:10
@netlify
Copy link
Copy Markdown

netlify bot commented Jul 14, 2025

Deploy Preview for rsbuild ready!

Name Link
🔨 Latest commit 754afc3
🔍 Latest deploy log https://app.netlify.com/projects/rsbuild/deploys/68750fbea5eec500081aaf69
😎 Deploy Preview https://deploy-preview-5593--rsbuild.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 76 (🟢 up 3 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 100 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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

This PR adds a new section in the migration guide to highlight that Rsbuild offers built-in support for TypeScript paths aliases, allowing users to remove the vite-tsconfig-paths plugin.

  • Introduce a vite-tsconfig-paths section in both Chinese and English docs
  • Explain that Rsbuild natively supports TS paths aliases
  • Link to the advanced path alias guide for more details

Reviewed Changes

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

File Description
website/docs/zh/guide/migration/vite.mdx Added Chinese section on built-in TS paths alias support and removal of the plugin.
website/docs/en/guide/migration/vite.mdx Added English section on built-in TS paths alias support and removal of the plugin.
Comments suppressed due to low confidence (2)

website/docs/zh/guide/migration/vite.mdx:259

  • [nitpick] “alias 别名”存在冗余,可考虑删除其中一个以提升可读性,例如改为 “…支持 TypeScript 的 paths 选项作为别名”。
Rsbuild 开箱即用地支持 TypeScript 的 `paths` 选项作为 alias 别名,因此你可以直接移除 `vite-tsconfig-paths` 依赖。

website/docs/en/guide/migration/vite.mdx:259

  • [nitpick] 建议将 “as alias” 修改为复数形式或更清晰的表达,例如: “Rsbuild has built-in support for TypeScript paths aliases, so you can remove the vite-tsconfig-paths dependency.”
Rsbuild supports TypeScript's `paths` option as alias out of the box, so you can remove the `vite-tsconfig-paths` dependency directly.

@chenjiahan chenjiahan merged commit bdb3a9e into main Jul 14, 2025
13 checks passed
@chenjiahan chenjiahan deleted the vite_tsconfig_docs_0714 branch July 14, 2025 14:11
@chenjiahan chenjiahan mentioned this pull request Jul 16, 2025
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