We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b21540 commit 3bdad8aCopy full SHA for 3bdad8a
1 file changed
src/compiler/commandLineParser.ts
@@ -517,7 +517,7 @@ namespace ts {
517
518
// If this is one of the output extension (which would be .d.ts and .js if we are allowing compilation of js files)
519
// do not include this file if we included .ts or .tsx file with same base name as it could be output of the earlier compilation
520
- if (extension === ".d.ts" || (options.allowJs && extension === ".js")) {
+ if (extension === ".d.ts" || (options.allowJs && contains(supportedJavascriptExtensions, extension))) {
521
const baseName = fileName.substr(0, fileName.length - extension.length);
522
if (hasProperty(filesSeen, baseName + ".ts") || hasProperty(filesSeen, baseName + ".tsx")) {
523
continue;
0 commit comments