Skip to content

Commit 159b8dd

Browse files
Joe Bottiglieroevenstensberg
authored andcommitted
misc: strict Promise configuration validation (#298)
- updates configuration schema to use `"instanceof": "Promise"` (#258) - depends on (webpack/webpack#6430)
1 parent 250d15b commit 159b8dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

schemas/webpackConfigurationSchema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"oneOf": [
2+
"anyOf": [
33
{
44
"type": "object",
55
"description": "A webpack configuration object."
@@ -13,7 +13,7 @@
1313
}
1414
},
1515
{
16-
"instanceof": "Function",
16+
"instanceof": "Promise",
1717
"description": "A promise that resolves with a configuration object, or an array of configuration objects."
1818
}
1919
]

0 commit comments

Comments
 (0)