* 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)
| 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. |
no test coverage detected