diff --git a/lib/tooling/base-tool.ts b/lib/tooling/base-tool.ts index c1f7ce5672a..260eb9d45fa 100755 --- a/lib/tooling/base-tool.ts +++ b/lib/tooling/base-tool.ts @@ -73,6 +73,12 @@ export class BaseTool implements ITool { } // Even if the include key is truthy, we fall back to the exclusion list. } + + // an empty value (e.g. 'tool.foo.exclude=') yields a single empty + // string in the array, not an empty array. + if (this.tool.exclude.length === 1 && this.tool.exclude[0] === '') + return false; + return this.tool.exclude.find(excl => compilerId.includes(excl)) !== undefined; }