MCPcopy
hub / github.com/webpack/webpack / getModuleChunks

Method getModuleChunks

lib/ChunkGraph.js:620–623  ·  view source on GitHub ↗

* Gets module chunks. * @param {Module} module the module * @returns {Chunk[]} array of chunks (cached, do not modify)

(module)

Source from the content-addressed store, hash-verified

618 * @returns {Chunk[]} array of chunks (cached, do not modify)
619 */
620 getModuleChunks(module) {
621 const cgm = this._getChunkGraphModule(module);
622 return cgm.chunks.getFromCache(getArray);
623 }
624
625 /**
626 * Gets number of module chunks.

Callers 4

getChunksMethod · 0.80
cleanUpChunksMethod · 0.80
getInitialModuleChainsFunction · 0.80

Calls 2

_getChunkGraphModuleMethod · 0.95
getFromCacheMethod · 0.80

Tested by

no test coverage detected