Skip to content

Commit 56a26f3

Browse files
committed
add absolutePath to module definitions
as ajv is implemented this will automatically only be applied if the properties are strings, as `absolutePath` only works with type === string
1 parent 6971692 commit 56a26f3

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

‎schemas/webpackOptionsSchema.json‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -556,13 +556,16 @@
556556
]
557557
},
558558
"exclude": {
559-
"$ref": "#/definitions/ruleSet-condition"
559+
"$ref": "#/definitions/ruleSet-condition",
560+
"absolutePath": true
560561
},
561562
"include": {
562-
"$ref": "#/definitions/ruleSet-condition"
563+
"$ref": "#/definitions/ruleSet-condition",
564+
"absolutePath": true
563565
},
564566
"issuer": {
565-
"$ref": "#/definitions/ruleSet-condition"
567+
"$ref": "#/definitions/ruleSet-condition",
568+
"absolutePath": true
566569
},
567570
"loader": {
568571
"anyOf": [
@@ -591,7 +594,8 @@
591594
"$ref": "#/definitions/ruleSet-query"
592595
},
593596
"resource": {
594-
"$ref": "#/definitions/ruleSet-condition"
597+
"$ref": "#/definitions/ruleSet-condition",
598+
"absolutePath": true
595599
},
596600
"resourceQuery": {
597601
"$ref": "#/definitions/ruleSet-condition"
@@ -600,7 +604,8 @@
600604
"$ref": "#/definitions/ruleSet-rules"
601605
},
602606
"test": {
603-
"$ref": "#/definitions/ruleSet-condition"
607+
"$ref": "#/definitions/ruleSet-condition",
608+
"absolutePath": true
604609
},
605610
"use": {
606611
"$ref": "#/definitions/ruleSet-use"

0 commit comments

Comments
 (0)