diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 2e6727749f1..733e3158593 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -552,6 +552,7 @@ namespace ts { const errors: Diagnostic[] = []; if (configFileName && getBaseFileName(configFileName) === "jsconfig.json") { + options.module = ModuleKind.CommonJS; options.allowJs = true; }