From fc5d94df579414192dd074771e50f805466a3417 Mon Sep 17 00:00:00 2001 From: Bill Ticehurst Date: Thu, 11 Feb 2016 09:45:13 -0800 Subject: [PATCH] Do not add minified JavaScript files on file crawl --- src/compiler/commandLineParser.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/compiler/commandLineParser.ts b/src/compiler/commandLineParser.ts index 779db74048..82c6b852e2 100644 --- a/src/compiler/commandLineParser.ts +++ b/src/compiler/commandLineParser.ts @@ -553,6 +553,11 @@ namespace ts { continue; } + // Skip over any minified JavaScript files (ending in ".min.js") + if (/\.min\.js$/.test(fileName)) { + continue; + } + // If this is one of the output extension (which would be .d.ts and .js if we are allowing compilation of js files) // 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 if (extension === ".d.ts" || (options.allowJs && contains(supportedJavascriptExtensions, extension))) {