Merge pull request #16077 from webpack/fix-scheme

fix webpack scheme
This commit is contained in:
Tobias Koppers 2022-07-25 09:12:44 +02:00 committed by GitHub
commit d4cab5b6f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 38 additions and 1 deletions

View File

@ -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.
*/

File diff suppressed because one or more lines are too long

View File

@ -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",

5
types.d.ts vendored
View File

@ -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.
*/