MCPcopy
hub / github.com/webpack/webpack / getOrderedChunkModulesIterable

Method getOrderedChunkModulesIterable

lib/ChunkGraph.js:772–776  ·  view source on GitHub ↗

* Gets ordered chunk modules iterable. * @param {Chunk} chunk the chunk * @param {ModuleComparator} comparator comparator function * @returns {Iterable<Module>} return the modules for this chunk

(chunk, comparator)

Source from the content-addressed store, hash-verified

770 * @returns {Iterable<Module>} return the modules for this chunk
771 */
772 getOrderedChunkModulesIterable(chunk, comparator) {
773 const cgc = this._getChunkGraphChunk(chunk);
774 cgc.modules.sortWith(comparator);
775 return cgc.modules;
776 }
777
778 /**
779 * Gets ordered chunk modules iterable by source type.

Callers 10

getChunkModuleIdMapMethod · 0.95
applyMethod · 0.80
modulesIterableMethod · 0.80
getChunkModuleMapsMethod · 0.80
applyMethod · 0.80
getAllWasmModulesFunction · 0.80
applyMethod · 0.80
applyMethod · 0.80
compareChunksNaturalFunction · 0.80

Calls 2

_getChunkGraphChunkMethod · 0.95
sortWithMethod · 0.80

Tested by

no test coverage detected