2 ms·
When I say this: > especially if the project has many files to load at runtime for interpretation. I bet it's spending a lot of time on require(). I am talkin
by winrid 4y ago
When I say this:
> especially if the project has many files to load at runtime for interpretation. I bet it's spending a lot of time on require().
I am talking about tsc itself. If there are hundreds/thousands of modules to load, node will spend time on that. coffeescript is a much smaller transpiler, with just a handful of source files.
EDIT - looks like tsc might get distributed as a single file, which helps here. However, it is a 7mb source file :)
https://raw.githubusercontent.com/microsoft/TypeScript/main/lib/typescript.js https://raw.githubusercontent.com/microsoft/TypeScript/main/...
When I execute it locally, with no arguments, it finishes instantly as far as I can tell. So maybe tsc itself is indeed super slow for just an empty file.