mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-13 06:20:23 -06:00
use only 'separateCompilation' flag when checking of file should be emitted
This commit is contained in:
parent
60f3fe3de2
commit
82796673ca
@ -1438,8 +1438,7 @@ module ts {
|
||||
if ((isExternalModule(sourceFile) || !compilerOptions.out)) {
|
||||
// 1. in-browser single file compilation scenario
|
||||
// 2. non .js file
|
||||
return (compilerOptions.separateCompilation && compilerOptions.allowNonTsExtensions) ||
|
||||
!fileExtensionIs(sourceFile.fileName, ".js");
|
||||
return compilerOptions.separateCompilation || !fileExtensionIs(sourceFile.fileName, ".js");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user