We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6d42658 + a768464 commit 261df23Copy full SHA for 261df23
ExtractedModule.js
@@ -27,10 +27,14 @@ ExtractedModule.prototype.addChunk = function(chunk) {
27
this.chunks.push(chunk);
28
};
29
30
-ExtractedModule.prototype._removeAndDo = require("webpack/lib/removeAndDo");
31
-
32
ExtractedModule.prototype.removeChunk = function(chunk) {
33
- return this._removeAndDo("chunks", chunk, "removeModule");
+ var idx = this.chunks.indexOf(chunk);
+ if(idx >= 0) {
+ this.chunks.splice(idx, 1);
34
+ chunk.removeModule(this);
35
+ return true;
36
+ }
37
+ return false;
38
39
40
ExtractedModule.prototype.rewriteChunkInReasons = function(oldChunk, newChunks) { };
0 commit comments