Skip to content

Commit

Permalink
fix: make excludeModules accept booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
byzyk committed Mar 14, 2018
1 parent 6ddba9b commit 13b80be
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/Stats.js
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ class Stats {
optimizationBailout: true,
errorDetails: true,
publicPath: true,
exclude: () => false,
exclude: false,
maxModules: Infinity
};
case "detailed":
Expand All @@ -1190,7 +1190,7 @@ class Stats {
optimizationBailout: true,
errorDetails: true,
publicPath: true,
exclude: () => false,
exclude: false,
maxModules: Infinity
};
case "minimal":
Expand Down
8 changes: 7 additions & 1 deletion schemas/WebpackOptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -1821,10 +1821,13 @@
]
},
"excludeModules": {
"description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps or Functions",
"description": "Suppress modules that match the specified filters. Filters can be Strings, RegExps, Booleans or Functions",
"anyOf": [
{
"$ref": "#/definitions/filter-types"
},
{
"type": "boolean"
}
]
},
Expand All @@ -1833,6 +1836,9 @@
"anyOf": [
{
"$ref": "#/definitions/filter-types"
},
{
"type": "boolean"
}
]
},
Expand Down

0 comments on commit 13b80be

Please sign in to comment.