chore: enable tsgo for dts generation#13952
Merged
Merged
Conversation
Contributor
📦 Binary Size-limit
❌ Size increased by 4.00KB from 61.92MB to 61.92MB (⬆️0.01%) |
Contributor
Rsdoctor Bundle Diff AnalysisFound 6 projects in monorepo, 0 projects with changes. 📊 Quick Summary
Generated by Rsdoctor GitHub Action |
Contributor
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enables Rslib’s dts.tsgo backend for faster TypeScript declaration (.d.ts) generation in the Rspack packages, and adds @typescript/native-preview so the native TypeScript preview backend is available during pnpm build:js.
Changes:
- Add
@typescript/native-previewas a root devDependency (and update the lockfile accordingly). - Enable
dts.tsgo: truein the Rslib configs for@rspack/core,@rspack/browser, and@rspack/cli.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
package.json |
Adds @typescript/native-preview to support the native TS preview backend for dts generation. |
pnpm-lock.yaml |
Locks @typescript/native-preview and its platform packages; wires it into the resolved @rslib/core / rsbuild-plugin-dts peer set. |
packages/rspack/rslib.config.ts |
Enables dts.tsgo for core Rspack declaration generation. |
packages/rspack/rslib.browser.config.ts |
Enables dts.tsgo for the browser build declaration generation. |
packages/rspack-cli/rslib.config.ts |
Enables dts.tsgo for CLI bundled declaration output. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Deploying rspack with
|
| Latest commit: |
3ace5ce
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://5d4c609c.rspack-v2.pages.dev |
| Branch Preview URL: | https://chenjiahan-feat-enable-tsgo.rspack-v2.pages.dev |
Timeless0911
approved these changes
May 9, 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
dts.tsgofor Rspack declaration generation and add@typescript/native-previewsopnpm build:jscan use the native TypeScript preview backend.@rspack/test-tools.Performance for
pnpm build:js:13.63s user 2.30s system 290% cpu 5.488 total6.22s user 2.02s system 306% cpu 2.693 totalRelated links
https://rslib.rs/config/lib/dts#dtstsgo
Checklist