Skip to content

Commit 0f65643

Browse files
committed
fix: wrap bool with function to pass tests
1 parent 13b80be commit 0f65643

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Stats.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class Stats {
106106
if (item && typeof item === "object" && typeof item.test === "function")
107107
return ident => item.test(ident);
108108
if (typeof item === "function") return item;
109+
if (typeof item === "boolean") return () => item;
109110
};
110111

111112
const compilation = this.compilation;

0 commit comments

Comments
 (0)