I'm working on a big Angular project. The compilation time is quite long.
I've heard that Microsoft released a new typescript compiler, which is written in GO and is 10x faster than the previous versions.
How can I leverage new TypeScript compiler which is written in GO?
TLDR: Today, no.
In the future yes, but it will require some additional work from the typescript team and from the Angular team.
Long Answer:
Angular builds applications with its own compiler called "NGC". NGC is a typescript programm (ts.Program
) that basically wraps the typescript compiler.
NGC does call the typescript compiler APIs directly, not via the tsc
command line.
Now that the typescript compiler is going native, this is no longer directly possible. It will require some additionnal work on both the Typescript team side and the Angular team side.