mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-20 22:51:17 -05:00
Allow the js files to emit output
This commit is contained in:
@@ -1769,8 +1769,9 @@ namespace ts {
|
||||
if (!isDeclarationFile(sourceFile)) {
|
||||
if ((isExternalModule(sourceFile) || !(compilerOptions.outFile || compilerOptions.out))) {
|
||||
// 1. in-browser single file compilation scenario
|
||||
// 2. non .js file
|
||||
return compilerOptions.isolatedModules || !fileExtensionIs(sourceFile.fileName, ".js");
|
||||
// 2. non supported extension file
|
||||
return compilerOptions.isolatedModules ||
|
||||
forEach(supportedExtensions, extension => fileExtensionIs(sourceFile.fileName, extension));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user