diff --git a/schemas/webpackOptionsSchema.json b/schemas/webpackOptionsSchema.json index 27a2e6ac9..895d881a7 100644 --- a/schemas/webpackOptionsSchema.json +++ b/schemas/webpackOptionsSchema.json @@ -76,7 +76,14 @@ }, { "additionalProperties": { - "type": "string" + "anyOf": [ + { + "type": "string" + }, + { + "type": "object" + } + ] }, "description": "If an dependency matches exactly a property of the object, the property value is used as dependency.", "type": "object" @@ -109,7 +116,14 @@ "type": "boolean" }, "exprContextRegExp": { - "instanceof": "RegExp" + "anyOf": [ + { + "type": "boolean" + }, + { + "instanceof": "RegExp" + } + ] }, "exprContextRequest": { "type": "string" @@ -153,7 +167,14 @@ "type": "boolean" }, "unknownContextRegExp": { - "instanceof": "RegExp" + "anyOf": [ + { + "type": "boolean" + }, + { + "instanceof": "RegExp" + } + ] }, "unknownContextRequest": { "type": "string"