MCPcopy
hub / github.com/webpack/webpack / areModulesAvailable

Function areModulesAvailable

lib/buildChunkGraph.js:1354–1360  ·  view source on GitHub ↗
(chunkGroup, availableModules)

Source from the content-addressed store, hash-verified

1352 * @returns {boolean} return true if all modules of a chunk are available
1353 */
1354 const areModulesAvailable = (chunkGroup, availableModules) => {
1355 for (const chunk of chunkGroup.chunks) {
1356 const chunkMask = /** @type {bigint} */ (maskByChunk.get(chunk));
1357 if ((chunkMask & availableModules) !== chunkMask) return false;
1358 }
1359 return true;
1360 };
1361
1362 // For each edge in the basic chunk graph
1363 for (const [block, connections] of blockConnections) {

Callers 1

connectChunkGroupsFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected