Skip to content

Commit 264716f

Browse files
committed
Allow regex in filename option
1 parent cbc5d0e commit 264716f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lib/optionsSchema.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,14 @@
1919
},
2020
"filename": {
2121
"description": "The filename that needs to be requested in order to trigger a recompile (only in lazy mode).",
22-
"type": "string"
22+
"anyOf": [
23+
{
24+
"instanceof": "RegExp"
25+
},
26+
{
27+
"type": "string"
28+
}
29+
]
2330
},
2431
"outputPath": {
2532
"description": "TODO.",

0 commit comments

Comments
 (0)