TypeScript Go support (at least in CLI)

Open Beginner friendly
#2,733 13 comments 20 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
typescript
Domain
cli

Research direction

Start at the svelte-check CLI entry point and trace how it invokes tsc. Add a CLI or configuration option that selects tsgo tsc instead, then verify that the existing svelte-check CLI behavior remains unchanged when the option is not enabled.

Written by the indexing model from the issue text.

Description

Blocked upstream
Description

JSX support has been recently implemented in the Go implementation of TypeScript.

The new Go implementation is a lot faster (10 times faster in some projects), and uses ~half the memory as the JS implementation.

It seems that this new version has enough features for a fast CLI svelte-check command. LSP support is lacking at the moment, but an optional svelte-check config option would be really useful.

Proposed solution

Add a command line option to svelte-check that enables the use of tsgo tsc … instead of tsc.

Alternatives

None. This seems a quite simple change, with the most obvious solution being a CLI option. Other solutions seem a lot more complicated.

Additional Information, eg. Screenshots

No response

Dominant language
TypeScript
Stars
1.4k
Forks
252
Avg merge
8d 13h
Merged PRs (30d)
2

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from sveltejs/language-tools

All issues in sveltejs/language-tools

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.