There was an error while loading. Please reload this page.
1 parent 60f3fe3 commit 8279667Copy full SHA for 8279667
src/compiler/utilities.ts
@@ -1438,8 +1438,7 @@ module ts {
1438
if ((isExternalModule(sourceFile) || !compilerOptions.out)) {
1439
// 1. in-browser single file compilation scenario
1440
// 2. non .js file
1441
- return (compilerOptions.separateCompilation && compilerOptions.allowNonTsExtensions) ||
1442
- !fileExtensionIs(sourceFile.fileName, ".js");
+ return compilerOptions.separateCompilation || !fileExtensionIs(sourceFile.fileName, ".js");
1443
}
1444
return false;
1445
0 commit comments