From 856c44213b7faf507d4b481cfc170b2fd08f971a Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 20 May 2019 12:06:57 -0400 Subject: TS compiler refactor * Compiler no longer has its own Tokio runtime. Compiler handles one message and then exits. * Uses the simpler ts.CompilerHost interface instead of ts.LanguageServiceHost. * avoids recompiling the same module by introducing a hacky but simple `hashset` that stores the module names that have been already compiled. * Removes the CompilerConfig op. * Removes a lot of the mocking stuff in compiler.ts like `this._ts`. It is not useful as we don't even have tests. * Turns off checkJs because it causes fmt_test to die with OOM. --- tests/error_006_import_ext_failure.ts.out | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/error_006_import_ext_failure.ts.out') diff --git a/tests/error_006_import_ext_failure.ts.out b/tests/error_006_import_ext_failure.ts.out index 7fe154aa0..8cd05d692 100644 --- a/tests/error_006_import_ext_failure.ts.out +++ b/tests/error_006_import_ext_failure.ts.out @@ -3,9 +3,8 @@ at maybeError (js/errors.ts:[WILDCARD]) at maybeThrowError (js/errors.ts:[WILDCARD]) at sendSync (js/dispatch.ts:[WILDCARD]) - at fetchModuleMetaData (js/os.ts:[WILDCARD]) + at fetchModuleMetaData (js/compiler.ts:[WILDCARD]) at _resolveModule (js/compiler.ts:[WILDCARD]) - at resolveModuleNames (js/compiler.ts:[WILDCARD]) - at compilerHost.resolveModuleNames ([WILDCARD]) + at js/compiler.ts:[WILDCARD] at resolveModuleNamesWorker ([WILDCARD]) at resolveModuleNamesReusingOldState ([WILDCARD]typescript.js:[WILDCARD]) -- cgit v1.2.3