set default module to commonjs for jsconfig.json

This commit is contained in:
Zhengbo Li 2016-01-21 16:05:44 -08:00
parent ea94a05feb
commit 31f5502f2b

View file

@ -552,6 +552,7 @@ namespace ts {
const errors: Diagnostic[] = [];
if (configFileName && getBaseFileName(configFileName) === "jsconfig.json") {
options.module = ModuleKind.CommonJS;
options.allowJs = true;
}