remove ChunkGraph.getOrderedChunkEntryModulesWithChunkGroup as it makes no sense
This commit is contained in:
parent
e5b51235d7
commit
bcf2f55ecb
|
@ -500,7 +500,7 @@ class Chunk {
|
|||
)) {
|
||||
hash.update(chunkGraph.getModuleHash(m));
|
||||
}
|
||||
const entryModules = chunkGraph.getOrderedChunkEntryModulesWithChunkGroup(
|
||||
const entryModules = chunkGraph.getChunkEntryModulesWithChunkGroupIterable(
|
||||
this
|
||||
);
|
||||
for (const [m, chunkGroup] of entryModules) {
|
||||
|
|
|
@ -1049,17 +1049,6 @@ class ChunkGraph {
|
|||
return cgc.entryModules;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Chunk} chunk the chunk
|
||||
* @returns {EntryModuleWithChunkGroup[]} array of modules (ordered)
|
||||
*/
|
||||
getOrderedChunkEntryModulesWithChunkGroup(chunk) {
|
||||
const cgc = this._getChunkGraphChunk(chunk);
|
||||
const array = Array.from(cgc.entryModules);
|
||||
array.sort(compareSelect(p => p[0], compareModulesByIdentifier));
|
||||
return array;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {AsyncDependenciesBlock} depBlock the async block
|
||||
* @returns {ChunkGroup} the chunk group
|
||||
|
|
|
@ -380,6 +380,9 @@ class ExportsInfo {
|
|||
return new SortableSet(array);
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {null | true | string[]} list of exports when known
|
||||
*/
|
||||
getProvidedExports() {
|
||||
if (!this._redirectTo) {
|
||||
switch (this._otherExportsInfo.provided) {
|
||||
|
|
Loading…
Reference in New Issue