We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 407d1bc commit ddf6066Copy full SHA for ddf6066
1 file changed
lib/Compilation.js
@@ -491,7 +491,13 @@ Compilation.prototype.seal = function seal(callback) {
491
chunk.initial = chunk.entry = true;
492
chunk.addModule(module);
493
module.addChunk(chunk);
494
+ if(typeof module.index !== "number") {
495
+ module.index = this.nextFreeModuleIndex++;
496
+ }
497
this.processDependenciesBlockForChunk(module, chunk);
498
+ if(typeof module.index2 !== "number") {
499
+ module.index2 = this.nextFreeModuleIndex2++;
500
501
}, this);
502
this.sortModules(this.modules);
503
this.applyPlugins("optimize");
0 commit comments