Skip to content

Commit

Permalink
Merge pull request #16077 from webpack/fix-scheme
Browse files Browse the repository at this point in the history
fix webpack scheme
  • Loading branch information
sokra committed Jul 25, 2022
2 parents 6e3e037 + 767f741 commit d4cab5b
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
9 changes: 9 additions & 0 deletions declarations/WebpackOptions.d.ts
Expand Up @@ -1505,6 +1505,15 @@ export interface ResolveOptions {
* Field names from the description file (usually package.json) which are used to provide entry points of a package.
*/
exportsFields?: string[];
/**
* An object which maps extension to extension aliases.
*/
extensionAlias?: {
/**
* Extension alias.
*/
[k: string]: string[] | string;
};
/**
* Extensions added to the request when trying to find the file.
*/
Expand Down
2 changes: 1 addition & 1 deletion schemas/WebpackOptions.check.js

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions schemas/WebpackOptions.json
Expand Up @@ -3737,6 +3737,29 @@
"type": "string"
}
},
"extensionAlias": {
"description": "An object which maps extension to extension aliases.",
"type": "object",
"additionalProperties": {
"description": "Extension alias.",
"anyOf": [
{
"description": "Multiple extensions.",
"type": "array",
"items": {
"description": "Aliased extension.",
"type": "string",
"minLength": 1
}
},
{
"description": "Aliased extension.",
"type": "string",
"minLength": 1
}
]
}
},
"extensions": {
"description": "Extensions added to the request when trying to find the file.",
"type": "array",
Expand Down
5 changes: 5 additions & 0 deletions types.d.ts
Expand Up @@ -9716,6 +9716,11 @@ declare interface ResolveOptionsWebpackOptions {
*/
exportsFields?: string[];

/**
* An object which maps extension to extension aliases.
*/
extensionAlias?: { [index: string]: string | string[] };

/**
* Extensions added to the request when trying to find the file.
*/
Expand Down

0 comments on commit d4cab5b

Please sign in to comment.