This commit is contained in:
Hai 2025-09-27 20:27:55 +08:00
parent 5604ce9b89
commit c056283928
4 changed files with 22 additions and 6 deletions

View File

@ -48,9 +48,9 @@ export interface SourceMapDevToolPluginOptions {
*/
filename?: (false | null) | string;
/**
* Include source maps for modules based on their extension (defaults to .js and .css).
* Decide whether to ignore source files that match the specified value in the SourceMap.
*/
ignoreList?: Rules;
ignoreList?: Rule[] | Rule;
/**
* Include source maps for module paths that match the given value.
*/

File diff suppressed because one or more lines are too long

View File

@ -107,7 +107,23 @@
]
},
"ignoreList": {
"$ref": "#/definitions/rules"
"description": "Decide whether to ignore source files that match the specified value in the SourceMap.",
"oneOf": [
{
"type": "array",
"items": {
"description": "ignoreList Rule",
"oneOf": [
{
"$ref": "#/definitions/rule"
}
]
}
},
{
"$ref": "#/definitions/rule"
}
]
},
"include": {
"description": "Include source maps for module paths that match the given value.",

4
types.d.ts vendored
View File

@ -16514,9 +16514,9 @@ declare interface SourceMapDevToolPluginOptions {
filename?: null | string | false;
/**
* Include source maps for modules based on their extension (defaults to .js and .css).
* Decide whether to ignore source files that match the specified value in the SourceMap.
*/
ignoreList?: string | RegExp | Rule[] | ((str: string) => boolean);
ignoreList?: string | RegExp | ((str: string) => boolean) | Rule[];
/**
* Include source maps for module paths that match the given value.