mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-17 11:24:29 -05:00
Dont default to CommonJS modules for ES6 target
(cherry picked from commit 4a67dc5e08)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user