File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ namespace ts {
4949
5050 const compilerOptions = host.getCompilerOptions();
5151 const languageVersion = compilerOptions.target || ScriptTarget.ES3;
52- const modulekind = compilerOptions.module ? compilerOptions.module : languageVersion === ScriptTarget.ES6 ? ModuleKind.ES6 : ModuleKind.None ;
52+ const modulekind = compilerOptions.module ? compilerOptions.module : languageVersion === ScriptTarget.ES6 ? ModuleKind.ES6 : ModuleKind.CommonJS ;
5353 const allowSyntheticDefaultImports = typeof compilerOptions.allowSyntheticDefaultImports !== "undefined" ? compilerOptions.allowSyntheticDefaultImports : modulekind === ModuleKind.System;
5454
5555 const emitResolver = createResolver();
Original file line number Diff line number Diff line change @@ -2013,7 +2013,7 @@ namespace ts {
20132013 export function getEmitModuleKind ( compilerOptions : CompilerOptions ) {
20142014 return compilerOptions . module ?
20152015 compilerOptions . module :
2016- getEmitScriptTarget ( compilerOptions ) === ScriptTarget . ES6 ? ModuleKind . ES6 : ModuleKind . None ;
2016+ getEmitScriptTarget ( compilerOptions ) === ScriptTarget . ES6 ? ModuleKind . ES6 : ModuleKind . CommonJS ;
20172017 }
20182018
20192019 export interface EmitFileNames {
You can’t perform that action at this time.
0 commit comments