Skip to content

Commit ece7786

Browse files
committed
Do not add minified JavaScript files on file crawl
(cherry picked from commit fc5d94d)
1 parent b93d112 commit ece7786

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/compiler/commandLineParser.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,11 @@ namespace ts {
579579
continue;
580580
}
581581

582+
// Skip over any minified JavaScript files (ending in ".min.js")
583+
if (/\.min\.js$/.test(fileName)) {
584+
continue;
585+
}
586+
582587
// If this is one of the output extension (which would be .d.ts and .js if we are allowing compilation of js files)
583588
// 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
584589
if (extension === ".d.ts" || (options.allowJs && contains(supportedJavascriptExtensions, extension))) {

0 commit comments

Comments
 (0)