Skip to content

TypeScript Go support (at least in CLI) #2733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
notramo opened this issue Apr 8, 2025 · 1 comment
Open

TypeScript Go support (at least in CLI) #2733

notramo opened this issue Apr 8, 2025 · 1 comment

Comments

@notramo
Copy link

notramo commented Apr 8, 2025

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

@jasonlyu123
Copy link
Member

No. It's not a simple change. svelte-check does not call tsc by the command. It used low-level typescript API that is about to be rewritten in typescript go. This is definitely on the radar but not anytime soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants