Skip to content

Migrate to TypeScript 6/7 #19226

Closed
Closed

Description

@logaretm

Replace typescript with @typescript/native-preview (tsgo) for type checking and declaration generation. tsgo is Microsoft's Go-based rewrite of the TypeScript compiler, promising up to 10x faster builds and significantly reduced memory usage.

⚠️ tsgo is still in preview and not production ready.

This is exploratory work to validate feasibility, surface required code changes, and track upstream progress toward a stable release. Upgrading to TypeScript 6.0 first may be a good bridge step, it's the last JS-based release and deprecates the features removed in 7.0, letting us fix compatibility issues incrementally before the full native switch.

Known blockers

  • Some packages still need fixes to build cleanly under tsgo
  • Declaration emit is not fully complete upstream (some types get dropped during exports)
  • --build mode (project references) still has gaps
  • Aligns with TS 5.9 semantics, some deprecated patterns may need migration

Depends on


Tracking PR: https://github.com/getsentry/sentry-javascript/pull/18422

Activity

  1. self-assigned this
    on Feb 6, 2026
  2. added
    javascript
    on Feb 6, 2026
  3. linear commented on Feb 6, 2026

    @linear
  4. added a commit that references this issue on Jul 22, 2026
    9f022ab
  5. github-actions commented on Sep 23, 2026

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #19435, which was included in the 11.0.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

State: BlockedTaskjavascript

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions