ts2c
ts2c copied to clipboard
Can it do bootstrapping? It is so slow.
Not sure what you mean by bootstrapping, but big part of transpilation is preprocessing provided by TypeScript (and I cannot do anything about it).
If you could provide some concrete examples where transpilation is very slow in TS2C comparing to normal TypeScript (e.g. compare time ts2c test.ts
and time tsc test.ts
), then I might be able to do some optimizations, even though I don't really consider transpilation speed important at this point.
https://github.com/andrei-markeev/ts2c/blob/master/package.json
2.8.3 is pretty old.
Enum is not implemented.So I need to first tsc
.
2.8.3 is pretty old
true, but for now I am only implementing ES3 spec, so it doesn't really matter which TS version is used. I will update it at some point but I don't think it will affect anything.
Enum is not implemented. So I need first
tsc
My previous comment still stands: ts2c
sort of runs tsc
behind the scenes for getting AST and semantic information. So running ts2c
cannot be faster than running tsc
on the same file.