MCPcopy
hub / github.com/webpack/webpack / upgradeDependentToFullHashModules

Method upgradeDependentToFullHashModules

lib/ChunkGraph.js:1143–1154  ·  view source on GitHub ↗

* Upgrade dependent to full hash modules. * @param {Chunk} chunk the chunk to upgrade * @returns {void}

(chunk)

Source from the content-addressed store, hash-verified

1141 * @returns {void}
1142 */
1143 upgradeDependentToFullHashModules(chunk) {
1144 const cgc = this._getChunkGraphChunk(chunk);
1145 if (cgc.dependentHashModules === undefined) return;
1146 if (cgc.fullHashModules === undefined) {
1147 cgc.fullHashModules = cgc.dependentHashModules;
1148 } else {
1149 for (const m of cgc.dependentHashModules) {
1150 cgc.fullHashModules.add(m);
1151 }
1152 cgc.dependentHashModules = undefined;
1153 }
1154 }
1155
1156 /**
1157 * Checks whether this chunk graph is entry module in chunk.

Callers 1

createHashMethod · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected