Merged
Conversation
Deploying rslib with
|
| Latest commit: |
87bb359
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d4fe463d.rslib.pages.dev |
| Branch Preview URL: | https://vk-876d-tsc-rslib.rslib.pages.dev |
Contributor
There was a problem hiding this comment.
Pull request overview
为文档站新增「tsc 项目迁移到 Rslib」的中英文迁移指南,并更新 migration 侧边栏元数据以纳入新页面,同时对 tsup 迁移文档的尾部说明做了小幅措辞调整。
Changes:
- 新增
tsc -> Rslib迁移指南(中英文),覆盖依赖、scripts、配置项/CLI 选项映射、JSX 场景与验证步骤。 - 更新中英文 migration
_meta.json,将tsc页面加入导航并调整顺序。 - 微调
tsup迁移文档尾部引用块文案(中文)。
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/zh/guide/migration/tsup.mdx | 更新尾部引用块文案表述 |
| website/docs/zh/guide/migration/tsc.mdx | 新增中文 tsc 迁移指南 |
| website/docs/zh/guide/migration/_meta.json | 将 tsc 加入中文迁移导航并调整顺序 |
| website/docs/en/guide/migration/tsc.mdx | 新增英文 tsc 迁移指南 |
| website/docs/en/guide/migration/_meta.json | 将 tsc 加入英文迁移导航并调整顺序 |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fi3ework
reviewed
Mar 2, 2026
Timeless0911
added a commit
that referenced
this pull request
Mar 2, 2026
**新的 PR 标题:** `docs: add tsc migration guide (Vibe Kanban)` **新的 PR 描述:** 包含了对 `tsc` 迁移到 Rslib 的详尽分析,清晰阐明了我们在迁移指南中增加的内容(比如 bundleless 模式、CLI 参数和 JSX 的特殊处理等),并在末尾附上了 Vibe Kanban 的说明链接。 你可以在这里查看更新后的 PR:#1503
2aa4403 to
87bb359
Compare
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.
This PR introduces a comprehensive guide for migrating projects using
tsc(TypeScript Compiler) to Rslib.What changes were made
tsc.mdxmigration guide in both English (website/docs/en/guide/migration/tsc.mdx) and Chinese (website/docs/zh/guide/migration/tsc.mdx)._meta.json) in both languages to featuretscat the top of the list.Why they were made
To provide clear, step-by-step instructions for users transitioning their build process from
tscto Rslib. Sincetscnaturally corresponds to Rslib's bundleless mode, this guide helps users maintain their file structure and output behavior seamlessly while leveraging Rslib.Implementation details
@rslib/coreand replacing build commands.tsccompilerOptions(likedeclaration,declarationDir,outDir,module,target) to Rslib configurations.tsconfigfiles (tsc -p) and TypeScript Project References (tsc -b).@rsbuild/plugin-reactwithtarget: 'web') and preserving it (runtime: 'preserve').This PR was written using Vibe Kanban