Skip to content

chore: replace tsc with tsgo#9409

Merged
reidbarber merged 5 commits intomainfrom
ts-go
Jan 6, 2026
Merged

chore: replace tsc with tsgo#9409
reidbarber merged 5 commits intomainfrom
ts-go

Conversation

@reidbarber
Copy link
Member

@reidbarber reidbarber commented Dec 23, 2025

https://devblogs.microsoft.com/typescript/progress-on-typescript-7-december-2025/

On my machine:

tsc: 57.6s
tsgo: 10.8s

To get VSCode to use it, you'll need to go to Settings -> TypeScript -> Experimental: Use Tsgo.

✅ Pull Request Checklist:

  • Included link to corresponding React Spectrum GitHub Issue.
  • Added/updated unit tests and storybook for this change (for new code or code which already has tests).
  • Filled out test instructions.
  • Updated documentation (if it already exists for this component).
  • Looked at the Accessibility Practices for this feature - Aria Practices

📝 Test Instructions:

Test yarn lint.

🧢 Your Project:

@rspbot
Copy link

rspbot commented Dec 23, 2025

snowystinger
snowystinger previously approved these changes Jan 5, 2026
Copy link
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dang that is so fast! it took 8s on my machine

"check-types": "tsc",
"tsgo": "tsgo",
"check-types": "tsgo --noEmit",
"check-types:tsc": "tsc",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we keeping both around just for timing comparison? or can we remove the old typescript?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it might be nice to keep both in case we get a weird error in tsgo and want to go compare with tsc to make sure it isn't due to a difference between the two.

@rspbot
Copy link

rspbot commented Jan 5, 2026

@reidbarber reidbarber enabled auto-merge January 5, 2026 22:42
@reidbarber reidbarber added this pull request to the merge queue Jan 6, 2026
Merged via the queue into main with commit 31861ad Jan 6, 2026
32 checks passed
@reidbarber reidbarber deleted the ts-go branch January 6, 2026 17:54
@yihuiliao yihuiliao added the no testing Does not require manual testing during testing session label Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no testing Does not require manual testing during testing session

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants