summaryrefslogtreecommitdiff
path: root/cli/js/compiler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/compiler.ts')
-rw-r--r--cli/js/compiler.ts16
1 files changed, 9 insertions, 7 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts
index 4ca2887c6..3db0e2f52 100644
--- a/cli/js/compiler.ts
+++ b/cli/js/compiler.ts
@@ -105,13 +105,6 @@ async function tsCompilerOnMessage({
type: CompilerRequestType[request.type]
});
- // This will recursively analyse all the code for other imports,
- // requesting those from the privileged side, populating the in memory
- // cache which will be used by the host, before resolving.
- const resolvedRootModules = await processImports(
- rootNames.map(rootName => [rootName, rootName])
- );
-
// When a programme is emitted, TypeScript will call `writeFile` with
// each file that needs to be emitted. The Deno compiler host delegates
// this, to make it easier to perform the right actions, which vary
@@ -141,6 +134,15 @@ async function tsCompilerOnMessage({
diagnostics = processConfigureResponse(configResult, configPath);
}
+ // This will recursively analyse all the code for other imports,
+ // requesting those from the privileged side, populating the in memory
+ // cache which will be used by the host, before resolving.
+ const resolvedRootModules = await processImports(
+ rootNames.map(rootName => [rootName, rootName]),
+ undefined,
+ host.getCompilationSettings().checkJs
+ );
+
let emitSkipped = true;
// if there was a configuration and no diagnostics with it, we will continue
// to generate the program and possibly emit it.