set default module to commonjs for jsconfig.json

This commit is contained in:
Zhengbo Li committed 2016-01-21 16:05:44 -08:00
1 parent ea94a05feb
commit 31f5502f2b
1 file changed
+1
+1
View File
@@ -552,6 +552,7 @@ namespace ts {
const errors: Diagnostic[] = [];
if (configFileName && getBaseFileName(configFileName) === "jsconfig.json") {
options.module = ModuleKind.CommonJS;
options.allowJs = true;
}