@tmikov
Tzvetan Mikov
3 years
We just landed support for TypeScript in the Hermes parser! (We can already parse Flow.) The rest of the compiler can't handle the annotations yet (that will come later), but tools that need to analyze JS source extremely fast can use the parser.
1
5
36

Replies

@vicmalov
Victor Malov
3 years
@tmikov It's awesome. But what's the reason of adding TypeScript into Hermes? How it's going to be used? I bet it will no anyhow affect generated code (but would be cool to have beast mode)
1
0
0
@tmikov
Tzvetan Mikov
3 years
@vicmalov There are benefits to compiling the actual source as written, without involving multiple source transformation tools, packagers, source maps, etc. The parser alone can already be used as a library by tools that need to analyze large mixed codebases quickly.
1
0
2