bolt-ts is a TypeScript compiler implemented in Rust. The current implementation heavily leverages code ported from the original TypeScript compiler(tsc).
When testing a subset of type-fest
functionality, bolt-ts demonstrates:
- 2.5× faster than ts-go
- 5× faster than tsc (Benchmarked on Apple M3 Max with 36GB RAM. See typescript-compiler-bench for details)
Core functionalities are operational but require refinement. Key pending improvements include:
- Parser: async function handling, jsx.
- Module Resolution: cache,
exports
/imports
field support,node_modules/@types
type definition resolution. - Type Checking: enum implementation and various edge-case bugs.
- Output Generation: sourcemap generation, different module systems.
- And others: js file processing, language service..