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:
16
node_modules/webpack/lib/FlagDependencyUsagePlugin.js
generated
vendored
16
node_modules/webpack/lib/FlagDependencyUsagePlugin.js
generated
vendored
@@ -31,6 +31,7 @@ class FlagDependencyUsagePlugin {
|
||||
* @param {boolean} global do a global analysis instead of per runtime
|
||||
*/
|
||||
constructor(global) {
|
||||
/** @type {boolean} */
|
||||
this.global = global;
|
||||
}
|
||||
|
||||
@@ -80,6 +81,7 @@ class FlagDependencyUsagePlugin {
|
||||
return;
|
||||
}
|
||||
for (const usedExportInfo of usedExports) {
|
||||
/** @type {string[]} */
|
||||
let usedExport;
|
||||
let canMangle = true;
|
||||
if (Array.isArray(usedExportInfo)) {
|
||||
@@ -167,7 +169,8 @@ class FlagDependencyUsagePlugin {
|
||||
* @returns {void}
|
||||
*/
|
||||
const processModule = (module, runtime, forceSideEffects) => {
|
||||
/** @type {Map<Module, ReferencedExports | Map<string, string[] | ReferencedExport>>} */
|
||||
/** @typedef {Map<string, string[] | ReferencedExport>} ExportMaps */
|
||||
/** @type {Map<Module, ReferencedExports | ExportMaps>} */
|
||||
const map = new Map();
|
||||
|
||||
/** @type {ArrayQueue<DependenciesBlock>} */
|
||||
@@ -177,14 +180,12 @@ class FlagDependencyUsagePlugin {
|
||||
const block = queue.dequeue();
|
||||
if (block === undefined) break;
|
||||
for (const b of block.blocks) {
|
||||
if (
|
||||
!this.global &&
|
||||
b.groupOptions &&
|
||||
b.groupOptions.entryOptions
|
||||
) {
|
||||
if (b.groupOptions && b.groupOptions.entryOptions) {
|
||||
processModule(
|
||||
b,
|
||||
b.groupOptions.entryOptions.runtime || undefined,
|
||||
this.global
|
||||
? undefined
|
||||
: b.groupOptions.entryOptions.runtime || undefined,
|
||||
true
|
||||
);
|
||||
} else {
|
||||
@@ -221,6 +222,7 @@ class FlagDependencyUsagePlugin {
|
||||
) {
|
||||
continue;
|
||||
} else {
|
||||
/** @type {undefined | ExportMaps} */
|
||||
let exportsMap;
|
||||
if (Array.isArray(oldReferencedExports)) {
|
||||
exportsMap = new Map();
|
||||
|
||||
Reference in New Issue
Block a user