MCPcopy
hub / github.com/webpack/webpack / getChunkRootModules

Method getChunkRootModules

lib/ChunkGraph.js:986–989  ·  view source on GitHub ↗

* Gets chunk root modules. * @param {Chunk} chunk the chunk * @returns {Module[]} root modules of the chunks (ordered by identifier)

(chunk)

Source from the content-addressed store, hash-verified

984 * @returns {Module[]} root modules of the chunks (ordered by identifier)
985 */
986 getChunkRootModules(chunk) {
987 const cgc = this._getChunkGraphChunk(chunk);
988 return cgc.modules.getFromUnorderedCache(this._getGraphRoots);
989 }
990
991 /**
992 * Returns total size of the chunk.

Callers 4

getShortChunkNameFunction · 0.80
getLongChunkNameFunction · 0.80
getFullChunkNameFunction · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected