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.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts
index 775277cdd..1779f76c3 100644
--- a/cli/js/compiler.ts
+++ b/cli/js/compiler.ts
@@ -285,7 +285,7 @@ async function processImports(
referrer = ""
): Promise<SourceFileJson[]> {
if (!specifiers.length) {
- return;
+ return [];
}
const sources = specifiers.map(([, moduleSpecifier]) => moduleSpecifier);
const sourceFiles = await fetchSourceFiles(sources, referrer);
@@ -385,6 +385,8 @@ class Host implements ts.CompilerHost {
private readonly _options: ts.CompilerOptions = {
allowJs: true,
allowNonTsExtensions: true,
+ // TODO(#3324) Enable strict mode for user code.
+ // strict: true,
checkJs: false,
esModuleInterop: true,
module: ts.ModuleKind.ESNext,