MCPcopy
hub / github.com/webpack/webpack / getChunkModules

Method getChunkModules

lib/ChunkGraph.js:800–803  ·  view source on GitHub ↗

* Gets chunk modules. * @param {Chunk} chunk the chunk * @returns {Module[]} return the modules for this chunk (cached, do not modify)

(chunk)

Source from the content-addressed store, hash-verified

798 * @returns {Module[]} return the modules for this chunk (cached, do not modify)
799 */
800 getChunkModules(chunk) {
801 const cgc = this._getChunkGraphChunk(chunk);
802 return cgc.modules.getFromUnorderedCache(getArray);
803 }
804
805 /**
806 * Gets ordered chunk modules.

Callers 8

integrateChunksMethod · 0.95
applyMethod · 0.80
getModulesMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
renderMethod · 0.80
webpack.config.jsFile · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected