We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3607ace commit 77897bdCopy full SHA for 77897bd
src/services/utilities.ts
@@ -1840,8 +1840,7 @@ namespace ts {
1840
return program.getSourceFiles().some(s => !s.isDeclarationFile && !program.isSourceFileFromExternalLibrary(s) && !!s.externalModuleIndicator);
1841
}
1842
export function compilerOptionsIndicateEs6Modules(compilerOptions: CompilerOptions): boolean {
1843
- // Prevent ES6 module indication for non-module files
1844
- if(compilerOptions.module === ModuleKind.None){
+ if (compilerOptions.module === ModuleKind.None){
1845
return false;
1846
1847
return !!compilerOptions.module || compilerOptions.target! >= ScriptTarget.ES2015 || !!compilerOptions.noEmit;
0 commit comments