Skip to content

Commit 13b80be

Browse files
committed
fix: make excludeModules accept booleans
1 parent 6ddba9b commit 13b80be

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

lib/Stats.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ class Stats {
11751175
optimizationBailout: true,
11761176
errorDetails: true,
11771177
publicPath: true,
1178-
exclude: () => false,
1178+
exclude: false,
11791179
maxModules: Infinity
11801180
};
11811181
case "detailed":
@@ -1190,7 +1190,7 @@ class Stats {
11901190
optimizationBailout: true,
11911191
errorDetails: true,
11921192
publicPath: true,
1193-
exclude: () => false,
1193+
exclude: false,
11941194
maxModules: Infinity
11951195
};
11961196
case "minimal":

schemas/WebpackOptions.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1821,10 +1821,13 @@
18211821
]
18221822
},
18231823
"excludeModules": {
1824-
"description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps or Functions",
1824+
"description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions",
18251825
"anyOf": [
18261826
{
18271827
"$ref": "#/definitions/filter-types"
1828+
},
1829+
{
1830+
"type": "boolean"
18281831
}
18291832
]
18301833
},
@@ -1833,6 +1836,9 @@
18331836
"anyOf": [
18341837
{
18351838
"$ref": "#/definitions/filter-types"
1839+
},
1840+
{
1841+
"type": "boolean"
18361842
}
18371843
]
18381844
},

0 commit comments

Comments
 (0)