Skip to content

Commit

Permalink
add restrictions option
Browse files Browse the repository at this point in the history
  • Loading branch information
vankop committed Jun 8, 2020
1 parent 0511503 commit 2f7510a
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions declarations/WebpackOptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1180,6 +1180,10 @@ export interface ResolveOptions {
resolver?: {
[k: string]: any;
};
/**
* A list of resolve restrictions.
*/
restrictions?: (RegExp | string)[];
/**
* Enable resolving symlinks to the original location.
*/
Expand Down
16 changes: 16 additions & 0 deletions schemas/WebpackOptions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2235,6 +2235,22 @@
"resolver": {
"description": "Custom resolver."
},
"restrictions": {
"description": "A list of resolve restrictions.",
"type": "array",
"items": {
"description": "Resolve restriction.",
"oneOf": [
{
"instanceof": "RegExp",
"tsType": "RegExp"
},
{
"type": "string"
}
]
}
},
"symlinks": {
"description": "Enable resolving symlinks to the original location.",
"type": "boolean"
Expand Down
5 changes: 5 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5811,6 +5811,11 @@ declare interface ResolveOptions {
*/
resolver?: { [index: string]: any };

/**
* A list of resolve restrictions.
*/
restrictions?: (string | RegExp)[];

/**
* Enable resolving symlinks to the original location.
*/
Expand Down

0 comments on commit 2f7510a

Please sign in to comment.