mirror of https://github.com/webpack/webpack.git
fix: adjust the timing for adding Group when depending on runtimeChunk
This commit is contained in:
parent
e3c48f5df4
commit
cbacdf11bf
|
@ -3261,6 +3261,23 @@ Or do you want to use the entrypoints '${name}' and '${runtime}' independently o
|
|||
}
|
||||
}
|
||||
|
||||
buildChunkGraph(this, chunkGraphInit);
|
||||
this.hooks.afterChunks.call(this.chunks);
|
||||
this.logger.timeEnd("create chunks");
|
||||
|
||||
this.logger.time("optimize");
|
||||
this.hooks.optimize.call();
|
||||
|
||||
while (this.hooks.optimizeModules.call(this.modules)) {
|
||||
/* empty */
|
||||
}
|
||||
this.hooks.afterOptimizeModules.call(this.modules);
|
||||
|
||||
while (this.hooks.optimizeChunks.call(this.chunks, this.chunkGroups)) {
|
||||
/* empty */
|
||||
}
|
||||
this.hooks.afterOptimizeChunks.call(this.chunks, this.chunkGroups);
|
||||
|
||||
for (const [
|
||||
name,
|
||||
{
|
||||
|
@ -3280,22 +3297,6 @@ Or do you want to use the entrypoints '${name}' and '${runtime}' independently o
|
|||
}
|
||||
}
|
||||
}
|
||||
buildChunkGraph(this, chunkGraphInit);
|
||||
this.hooks.afterChunks.call(this.chunks);
|
||||
this.logger.timeEnd("create chunks");
|
||||
|
||||
this.logger.time("optimize");
|
||||
this.hooks.optimize.call();
|
||||
|
||||
while (this.hooks.optimizeModules.call(this.modules)) {
|
||||
/* empty */
|
||||
}
|
||||
this.hooks.afterOptimizeModules.call(this.modules);
|
||||
|
||||
while (this.hooks.optimizeChunks.call(this.chunks, this.chunkGroups)) {
|
||||
/* empty */
|
||||
}
|
||||
this.hooks.afterOptimizeChunks.call(this.chunks, this.chunkGroups);
|
||||
|
||||
this.hooks.optimizeTree.callAsync(this.chunks, this.modules, (err) => {
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in New Issue