set default module to commonjs for jsconfig.json
This commit is contained in:
parent
ea94a05feb
commit
31f5502f2b
|
@ -552,6 +552,7 @@ namespace ts {
|
|||
const errors: Diagnostic[] = [];
|
||||
|
||||
if (configFileName && getBaseFileName(configFileName) === "jsconfig.json") {
|
||||
options.module = ModuleKind.CommonJS;
|
||||
options.allowJs = true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue