MCPcopy
hub / github.com/webpack/webpack / _getChunkGraphChunk

Method _getChunkGraphChunk

lib/ChunkGraph.js:345–352  ·  view source on GitHub ↗

* Get chunk graph chunk. * @private * @param {Chunk} chunk the chunk * @returns {ChunkGraphChunk} internal chunk

(chunk)

Source from the content-addressed store, hash-verified

343 * @returns {ChunkGraphChunk} internal chunk
344 */
345 _getChunkGraphChunk(chunk) {
346 let cgc = this._chunks.get(chunk);
347 if (cgc === undefined) {
348 cgc = new ChunkGraphChunk();
349 this._chunks.set(chunk, cgc);
350 }
351 return cgc;
352 }
353
354 /**
355 * Returns the graph roots.

Callers 15

connectChunkAndModuleMethod · 0.95
disconnectChunkMethod · 0.95
attachModulesMethod · 0.95
attachRuntimeModulesMethod · 0.95
attachFullHashModulesMethod · 0.95
replaceModuleMethod · 0.95
isModuleInChunkMethod · 0.95

Calls 2

getMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected