typescript-go icon indicating copy to clipboard operation
typescript-go copied to clipboard

Staging repo for development of native port of TypeScript

Results 434 typescript-go issues
Sort by recently updated
recently updated
newest added

`tsgo` returns this error: ``` tsconfig.json:15:5 - error TS5023: Unknown compiler option 'libReplacement'. 15 "libReplacement": false, ~~~~~~~~~~~~~~~~ ```

This enables the staticcheck linter. Unfortunately, this raises lint time from 7s to 70s (30s to _4m44s_ in CI....), so there's some perf investigation / reporting to do there.

Example project to reproduce the issue: [repro.zip](https://github.com/user-attachments/files/19317861/repro.zip) Result when running `tsgo` here: ``` build\ index.js ``` Expected result / what `tsc` outputs: ``` build\ static\ data.json src\ index.js ```

Don't know why does an empty string `""` appear in the `rootNames` filed, which keeps crashing lsp server several times. ```shell Info 14 [15:16:38.013] Open files: Info 14 [15:16:38.013] FileName:...

I noticed that the CPU is not fully utilized during the parsing phase. Tracing shows that there is a lot of unused CPU time: ![Image](https://github.com/user-attachments/assets/3545e3bd-e482-4033-ba6f-7dc44ba340b3) It turns out that a...

@jakebailey mentioned this is something the team is considering to do.

declarationEmitPathMappingMonorepo2, declarationEmitReexportedSymlinkReference2, dependencyViaImportAlias could be related to #309 or #310 or #311, which don't all appear to be baseline bugs

Ported: - IsEmitBlocked - getSourceMapFilePath - getDeclarationEmitOutputFilePath - getDeclarationEmitOutputFilePathWorker - ~~GetDeclarationEmitExtensionForPath~~ Added - SetEmitBlocked - BuildInfo struct for future usage

Hi! Since the compiler is to be rewritten in Go, I suggest considering using the Profile-Guided Optimization (PGO) option to optimize the Typescript compiler itself. Go [supports](https://go.dev/doc/pgo) PGO since 1.20...

This addresses `// TODO(rbuckton): Move `node != nil` test to call sites ` @rbuckton Can you please review this I can undo the stylistic whitespace changes in the internal/ast/utilities.g but...