remove ChunkGraph.getOrderedChunkEntryModulesWithChunkGroup as it makes no sense

This commit is contained in:
Tobias Koppers 2020-02-19 16:30:33 +01:00
parent e5b51235d7
commit bcf2f55ecb
3 changed files with 4 additions and 12 deletions

View File

@ -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) {

View File

@ -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

View File

@ -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) {