Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix webpack scheme #16077

Merged
merged 1 commit into from Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 @@ -9680,6 +9680,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