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:
33
node_modules/webpack/lib/buildChunkGraph.js
generated
vendored
33
node_modules/webpack/lib/buildChunkGraph.js
generated
vendored
@@ -50,6 +50,8 @@ const { getEntryRuntime, mergeRuntime } = require("./util/runtime");
|
||||
* @property {number} postOrderIndex next post order index
|
||||
* @property {boolean} chunkLoading has a chunk loading mechanism
|
||||
* @property {boolean} asyncChunks create async chunks
|
||||
* @property {Module | null} depModule the module that is the dependency of the block
|
||||
* @property {boolean} circular Whether to deduplicate to avoid circular references
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -165,6 +167,7 @@ const extractBlockModules = (module, moduleGraph, runtime, blockModulesMap) => {
|
||||
|
||||
for (const modules of arrays) {
|
||||
if (modules.length === 0) continue;
|
||||
/** @type {undefined | Map<Module | ModuleGraphConnection | ConnectionState, number>} */
|
||||
let indexMap;
|
||||
let length = 0;
|
||||
outer: for (let j = 0; j < modules.length; j += 3) {
|
||||
@@ -360,6 +363,9 @@ const visitModules = (
|
||||
/** @type {NamedChunkGroup} */
|
||||
const namedAsyncEntrypoints = new Map();
|
||||
|
||||
/** @type {Map<Module, ChunkGroupInfo>} */
|
||||
const depModuleAsyncEntrypoints = new Map();
|
||||
|
||||
/** @type {Set<ChunkGroupInfo>} */
|
||||
const outdatedOrderIndexChunkGroups = new Set();
|
||||
|
||||
@@ -373,7 +379,8 @@ const visitModules = (
|
||||
/** @type {QueueItem[]} */
|
||||
let queue = [];
|
||||
|
||||
/** @type {Map<ChunkGroupInfo, Set<[ChunkGroupInfo, QueueItem | null]>>} */
|
||||
/** @typedef {Set<[ChunkGroupInfo, QueueItem | null]>} ConnectList */
|
||||
/** @type {Map<ChunkGroupInfo, ConnectList>} */
|
||||
const queueConnect = new Map();
|
||||
/** @type {Set<ChunkGroupInfo>} */
|
||||
const chunkGroupsForCombining = new Set();
|
||||
@@ -388,6 +395,8 @@ const visitModules = (
|
||||
);
|
||||
/** @type {ChunkGroupInfo} */
|
||||
const chunkGroupInfo = {
|
||||
depModule: null,
|
||||
circular: false,
|
||||
initialized: false,
|
||||
chunkGroup,
|
||||
runtime,
|
||||
@@ -496,11 +505,16 @@ const visitModules = (
|
||||
let c;
|
||||
/** @type {Entrypoint | undefined} */
|
||||
let entrypoint;
|
||||
/** @type {Module | null} */
|
||||
const depModule = moduleGraph.getModule(b.dependencies[0]);
|
||||
const entryOptions = b.groupOptions && b.groupOptions.entryOptions;
|
||||
if (cgi === undefined) {
|
||||
const chunkName = (b.groupOptions && b.groupOptions.name) || b.chunkName;
|
||||
if (entryOptions) {
|
||||
cgi = namedAsyncEntrypoints.get(/** @type {string} */ (chunkName));
|
||||
if (!cgi && !b.circular && depModule) {
|
||||
cgi = depModuleAsyncEntrypoints.get(depModule);
|
||||
}
|
||||
if (!cgi) {
|
||||
entrypoint = compilation.addAsyncEntrypoint(
|
||||
entryOptions,
|
||||
@@ -511,6 +525,8 @@ const visitModules = (
|
||||
maskByChunk.set(entrypoint.chunks[0], ZERO_BIGINT);
|
||||
entrypoint.index = nextChunkGroupIndex++;
|
||||
cgi = {
|
||||
depModule,
|
||||
circular: b.circular,
|
||||
chunkGroup: entrypoint,
|
||||
initialized: false,
|
||||
runtime:
|
||||
@@ -548,6 +564,12 @@ const visitModules = (
|
||||
(cgi)
|
||||
);
|
||||
}
|
||||
if (!b.circular && depModule) {
|
||||
depModuleAsyncEntrypoints.set(
|
||||
depModule,
|
||||
/** @type {ChunkGroupInfo} */ (cgi)
|
||||
);
|
||||
}
|
||||
} else {
|
||||
entrypoint = /** @type {Entrypoint} */ (cgi.chunkGroup);
|
||||
// TODO merge entryOptions
|
||||
@@ -590,6 +612,8 @@ const visitModules = (
|
||||
maskByChunk.set(c.chunks[0], ZERO_BIGINT);
|
||||
c.index = nextChunkGroupIndex++;
|
||||
cgi = {
|
||||
depModule,
|
||||
circular: b.circular,
|
||||
initialized: false,
|
||||
chunkGroup: c,
|
||||
runtime: chunkGroupInfo.runtime,
|
||||
@@ -651,6 +675,7 @@ const visitModules = (
|
||||
// 3. We enqueue the chunk group info creation/updating
|
||||
let connectList = queueConnect.get(chunkGroupInfo);
|
||||
if (connectList === undefined) {
|
||||
/** @type {ConnectList} */
|
||||
connectList = new Set();
|
||||
queueConnect.set(chunkGroupInfo, connectList);
|
||||
}
|
||||
@@ -665,7 +690,10 @@ const visitModules = (
|
||||
chunkGroupInfo: /** @type {ChunkGroupInfo} */ (cgi)
|
||||
}
|
||||
]);
|
||||
} else if (entrypoint !== undefined) {
|
||||
} else if (
|
||||
entrypoint !== undefined &&
|
||||
(chunkGroupInfo.circular || chunkGroupInfo.depModule !== depModule)
|
||||
) {
|
||||
chunkGroupInfo.chunkGroup.addAsyncEntrypoint(entrypoint);
|
||||
}
|
||||
};
|
||||
@@ -1091,6 +1119,7 @@ const visitModules = (
|
||||
for (const cgi of info.children) {
|
||||
let connectList = queueConnect.get(info);
|
||||
if (connectList === undefined) {
|
||||
/** @type {ConnectList} */
|
||||
connectList = new Set();
|
||||
queueConnect.set(info, connectList);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user