docs: enhance tsup migration guide with detailed examples#1504
Merged
Timeless0911 merged 1 commit intomainfrom Mar 2, 2026
Merged
docs: enhance tsup migration guide with detailed examples#1504Timeless0911 merged 1 commit intomainfrom
Timeless0911 merged 1 commit intomainfrom
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
本 PR 旨在补充并统一 Rslib 的迁移文档表述,重点为 tsup 迁移文档增加更完整的迁移示例,帮助读者将典型 tsup 配置映射到 Rslib 配置。
Changes:
- 为中英文
tsup迁移文档新增“示例 / Example”与“验证结果 / Validating results”章节,提供 tsup → Rslib 的配置迁移样例。 - 修正文档排版与措辞一致性问题(如
package.json代码格式、debug mode 链接前后空格、outputs/artifacts 用词统一)。 - 微调
tsc迁移文档中的段落格式与用词,使其与其它迁移文档保持一致。
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| website/docs/zh/guide/migration/tsup.mdx | 新增迁移示例与验证章节,增强中文 tsup 迁移指引的可操作性 |
| website/docs/zh/guide/migration/tsc.mdx | 修正文档排版(链接前后空格等) |
| website/docs/en/guide/migration/tsup.mdx | 新增迁移示例与验证章节,并修正 npm scripts 段落表述 |
| website/docs/en/guide/migration/tsc.mdx | 统一用词(artifacts → outputs)并修正排版 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
35db22a to
54aa6fe
Compare
Deploying rslib with
|
| Latest commit: |
54aa6fe
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://eae3a987.rslib.pages.dev |
| Branch Preview URL: | https://vk-5e00-tsup.rslib.pages.dev |
fi3ework
approved these changes
Mar 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR enhances the
tsuptoRslibmigration documentation for both English and Chinese by:tsup.config.tsconfiguration (including multiple formats, dts generation, and clean options) maps to its equivalentrslib.config.ts.npm run buildand debugging tools.These updates help developers transition more seamlessly by providing concrete code examples and clear validation instructions.
Related Links
Checklist