Skip to content

Commit 8279667

Browse files
committed
use only 'separateCompilation' flag when checking of file should be emitted
1 parent 60f3fe3 commit 8279667

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/compiler/utilities.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,8 +1438,7 @@ module ts {
14381438
if ((isExternalModule(sourceFile) || !compilerOptions.out)) {
14391439
// 1. in-browser single file compilation scenario
14401440
// 2. non .js file
1441-
return (compilerOptions.separateCompilation && compilerOptions.allowNonTsExtensions) ||
1442-
!fileExtensionIs(sourceFile.fileName, ".js");
1441+
return compilerOptions.separateCompilation || !fileExtensionIs(sourceFile.fileName, ".js");
14431442
}
14441443
return false;
14451444
}

0 commit comments

Comments
 (0)