Skip to content

Commit 31f5502

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)