Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
30
node_modules/webpack/lib/EvalSourceMapDevToolPlugin.js
generated
vendored
30
node_modules/webpack/lib/EvalSourceMapDevToolPlugin.js
generated
vendored
@@ -119,6 +119,7 @@ class EvalSourceMapDevToolPlugin {
|
||||
});
|
||||
/** @type {RawSourceMap} */
|
||||
let sourceMap;
|
||||
/** @type {string | Buffer} */
|
||||
let content;
|
||||
if (source.sourceAndMap) {
|
||||
const sourceAndMap = source.sourceAndMap(options);
|
||||
@@ -164,20 +165,23 @@ class EvalSourceMapDevToolPlugin {
|
||||
}
|
||||
);
|
||||
sourceMap.sources = moduleFilenames;
|
||||
sourceMap.ignoreList = options.ignoreList
|
||||
? sourceMap.sources.reduce(
|
||||
/** @type {(acc: number[], sourceName: string, idx: number) => number[]} */ (
|
||||
(acc, sourceName, idx) => {
|
||||
const rule = /** @type {Rules} */ (options.ignoreList);
|
||||
if (ModuleFilenameHelpers.matchPart(sourceName, rule)) {
|
||||
acc.push(idx);
|
||||
}
|
||||
return acc;
|
||||
if (options.ignoreList) {
|
||||
const ignoreList = sourceMap.sources.reduce(
|
||||
/** @type {(acc: number[], sourceName: string, idx: number) => number[]} */ (
|
||||
(acc, sourceName, idx) => {
|
||||
const rule = /** @type {Rules} */ (options.ignoreList);
|
||||
if (ModuleFilenameHelpers.matchPart(sourceName, rule)) {
|
||||
acc.push(idx);
|
||||
}
|
||||
),
|
||||
[]
|
||||
)
|
||||
: [];
|
||||
return acc;
|
||||
}
|
||||
),
|
||||
[]
|
||||
);
|
||||
if (ignoreList.length > 0) {
|
||||
sourceMap.ignoreList = ignoreList;
|
||||
}
|
||||
}
|
||||
|
||||
if (options.noSources) {
|
||||
sourceMap.sourcesContent = undefined;
|
||||
|
||||
Reference in New Issue
Block a user