Skip to content

Commit fc5d94d

Browse files
committed
Do not add minified JavaScript files on file crawl
1 parent e4f7add commit fc5d94d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/compiler/commandLineParser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -553,6 +553,11 @@ namespace ts {
553553
continue;
554554
}
555555

556+
// Skip over any minified JavaScript files (ending in ".min.js")
557+
if (/\.min\.js$/.test(fileName)) {
558+
continue;
559+
}
560+
556561
// If this is one of the output extension (which would be .d.ts and .js if we are allowing compilation of js files)
557562
// 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
558563
if (extension === ".d.ts" || (options.allowJs && contains(supportedJavascriptExtensions, extension))) {

0 commit comments

Comments
 (0)