mirror of https://github.com/webpack/webpack.git
commit
d4cab5b6f7
|
|
@ -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
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue