Dont default to CommonJS modules for ES6 target

(cherry picked from commit 4a67dc5e08)
This commit is contained in:
Bill Ticehurst
2016-02-11 11:53:10 -08:00
parent a370103e15
commit 6a8ccd0b56
5 changed files with 3 additions and 6 deletions

View File

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