summaryrefslogtreecommitdiff
path: root/rollup.config.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2019-05-20 12:06:57 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-05-29 07:53:39 -0400
commit856c44213b7faf507d4b481cfc170b2fd08f971a (patch)
treeb2971883b0aeb43437a9be0076b4ffacde55d5b8 /rollup.config.js
parent64d2b7bc90cf6fdba661d6d3fe243fe332c076ee (diff)
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<string>` 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.
Diffstat (limited to 'rollup.config.js')
-rw-r--r--rollup.config.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/rollup.config.js b/rollup.config.js
index 31ee1dc23..635aace0d 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -231,10 +231,14 @@ export default function makeConfig(commandOptions) {
[typescriptPath]: [
"convertCompilerOptionsFromJson",
"createLanguageService",
+ "createProgram",
+ "createSourceFile",
+ "getPreEmitDiagnostics",
"formatDiagnostics",
"formatDiagnosticsWithColorAndContext",
"parseConfigFileTextToJson",
"version",
+ "CompilerHost",
"Extension",
"ModuleKind",
"ScriptKind",