MCPcopy
hub / github.com/webpack/webpack / getOrderedChunkModules

Method getOrderedChunkModules

lib/ChunkGraph.js:811–815  ·  view source on GitHub ↗

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

(chunk, comparator)

Source from the content-addressed store, hash-verified

809 * @returns {Module[]} return the modules for this chunk (cached, do not modify)
810 */
811 getOrderedChunkModules(chunk, comparator) {
812 const cgc = this._getChunkGraphChunk(chunk);
813 const arrayFunction = createOrderedArrayFunction(comparator);
814 return cgc.modules.getFromUnorderedCache(arrayFunction);
815 }
816
817 /**
818 * Gets chunk module id map.

Callers 2

applyMethod · 0.80
applyMethod · 0.80

Calls 3

_getChunkGraphChunkMethod · 0.95
getFromUnorderedCacheMethod · 0.80

Tested by

no test coverage detected