From c056283928bfda55358b9b528c578f6da6c9ee13 Mon Sep 17 00:00:00 2001 From: Hai Date: Sat, 27 Sep 2025 20:27:55 +0800 Subject: [PATCH] fix --- .../plugins/SourceMapDevToolPlugin.d.ts | 4 ++-- .../plugins/SourceMapDevToolPlugin.check.js | 2 +- schemas/plugins/SourceMapDevToolPlugin.json | 18 +++++++++++++++++- types.d.ts | 4 ++-- 4 files changed, 22 insertions(+), 6 deletions(-) diff --git a/declarations/plugins/SourceMapDevToolPlugin.d.ts b/declarations/plugins/SourceMapDevToolPlugin.d.ts index 0b7cd0976..379631211 100644 --- a/declarations/plugins/SourceMapDevToolPlugin.d.ts +++ b/declarations/plugins/SourceMapDevToolPlugin.d.ts @@ -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. */ diff --git a/schemas/plugins/SourceMapDevToolPlugin.check.js b/schemas/plugins/SourceMapDevToolPlugin.check.js index 130b7b75e..11c5dfb05 100644 --- a/schemas/plugins/SourceMapDevToolPlugin.check.js +++ b/schemas/plugins/SourceMapDevToolPlugin.check.js @@ -3,4 +3,4 @@ * DO NOT MODIFY BY HAND. * Run `yarn fix:special` to update */ -const e=/^(?:[A-Za-z]:[\\/]|\\\\|\/)/;module.exports=r,module.exports.default=r;const n={definitions:{rule:{anyOf:[{instanceof:"RegExp"},{type:"string",minLength:1},{instanceof:"Function"}]},rules:{anyOf:[{type:"array",items:{oneOf:[{$ref:"#/definitions/rule"}]}},{$ref:"#/definitions/rule"}]}},type:"object",additionalProperties:!1,properties:{append:{anyOf:[{enum:[!1,null]},{type:"string",minLength:1},{instanceof:"Function"}]},columns:{type:"boolean"},debugIds:{type:"boolean"},exclude:{oneOf:[{$ref:"#/definitions/rules"}]},fallbackModuleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},fileContext:{type:"string"},filename:{anyOf:[{enum:[!1,null]},{type:"string",absolutePath:!1,minLength:1}]},ignoreList:{$ref:"#/definitions/rules"},include:{oneOf:[{$ref:"#/definitions/rules"}]},module:{type:"boolean"},moduleFilenameTemplate:{anyOf:[{type:"string",minLength:1},{instanceof:"Function"}]},namespace:{type:"string"},noSources:{type:"boolean"},publicPath:{type:"string"},sourceRoot:{type:"string"},test:{$ref:"#/definitions/rules"}}},t=Object.prototype.hasOwnProperty;function s(e,{instancePath:n="",parentData:t,parentDataProperty:r,rootData:l=e}={}){let o=null,a=0;const i=a;let u=!1;const p=a;if(a===p)if(Array.isArray(e)){const n=e.length;for(let t=0;t boolean); + ignoreList?: string | RegExp | ((str: string) => boolean) | Rule[]; /** * Include source maps for module paths that match the given value.