Skip to content

Commit 31f5502

Browse files
Zhengbo LiZhengbo Li
authored andcommitted
set default module to commonjs for jsconfig.json
1 parent ea94a05 commit 31f5502

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/compiler/commandLineParser.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -552,6 +552,7 @@ namespace ts {
552552
const errors: Diagnostic[] = [];
553553

554554
if (configFileName && getBaseFileName(configFileName) === "jsconfig.json") {
555+
options.module = ModuleKind.CommonJS;
555556
options.allowJs = true;
556557
}
557558

0 commit comments

Comments
 (0)