3 ms·
Sychronous XHR also seems a symptom here of compiling Typescript to CommonJS which as a very synchronous module system is also the wrong module system to choose
by WorldMaker 1y ago
Sychronous XHR also seems a symptom here of compiling Typescript to CommonJS which as a very synchronous module system is also the wrong module system to choose for a browser application. All the modern browsers support ESM great and asynchronously load them just fine.
- spankalee 1y agoThe compiler API has nothing to do with the module format for the compiler itself. The issue is that the CompilerHost and LanguageServiceHost interfaces expect a synchronous filesystem API, and downstream from that the compiler internals all expect synchronous access to files. There's a very long standing issue open to make the API async, but I'm pretty sure it's obsolete now in the face of the tsgo work.