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:
7
node_modules/webpack/lib/ModuleInfoHeaderPlugin.js
generated
vendored
7
node_modules/webpack/lib/ModuleInfoHeaderPlugin.js
generated
vendored
@@ -63,6 +63,7 @@ const printExportsInfoToSource = (
|
||||
let alreadyPrintedExports = 0;
|
||||
|
||||
// determine exports to print
|
||||
/** @type {ExportInfo[]} */
|
||||
const printedExports = [];
|
||||
for (const exportInfo of exportsInfo.orderedExports) {
|
||||
if (!alreadyPrinted.has(exportInfo)) {
|
||||
@@ -145,7 +146,8 @@ const printExportsInfoToSource = (
|
||||
}
|
||||
};
|
||||
|
||||
/** @type {WeakMap<RequestShortener, WeakMap<Module, { header: RawSource | undefined, full: WeakMap<Source, CachedSource> }>>} */
|
||||
/** @typedef {{ header: RawSource | undefined, full: WeakMap<Source, CachedSource> }} CacheEntry */
|
||||
/** @type {WeakMap<RequestShortener, WeakMap<Module, CacheEntry>>} */
|
||||
const caches = new WeakMap();
|
||||
|
||||
const PLUGIN_NAME = "ModuleInfoHeaderPlugin";
|
||||
@@ -155,6 +157,7 @@ class ModuleInfoHeaderPlugin {
|
||||
* @param {boolean=} verbose add more information like exports, runtime requirements and bailouts
|
||||
*/
|
||||
constructor(verbose = true) {
|
||||
/** @type {boolean} */
|
||||
this._verbose = verbose;
|
||||
}
|
||||
|
||||
@@ -175,6 +178,7 @@ class ModuleInfoHeaderPlugin {
|
||||
{ chunk, chunkGraph, moduleGraph, runtimeTemplate }
|
||||
) => {
|
||||
const { requestShortener } = runtimeTemplate;
|
||||
/** @type {undefined | CacheEntry} */
|
||||
let cacheEntry;
|
||||
let cache = caches.get(requestShortener);
|
||||
if (cache === undefined) {
|
||||
@@ -256,6 +260,7 @@ class ModuleInfoHeaderPlugin {
|
||||
PLUGIN_NAME,
|
||||
(moduleSource, module, { runtimeTemplate }) => {
|
||||
const { requestShortener } = runtimeTemplate;
|
||||
/** @type {undefined | CacheEntry} */
|
||||
let cacheEntry;
|
||||
let cache = caches.get(requestShortener);
|
||||
if (cache === undefined) {
|
||||
|
||||
Reference in New Issue
Block a user