MCPcopy
hub / github.com/webpack/webpack / remove

Method remove

lib/Chunk.js:284–292  ·  view source on GitHub ↗

* Removes this chunk from the chunk graph and chunk groups. * @deprecated * @returns {void}

()

Source from the content-addressed store, hash-verified

282 * @returns {void}
283 */
284 remove() {
285 const chunkGraph = ChunkGraph.getChunkGraphForChunk(
286 this,
287 "Chunk.remove",
288 "DEP_WEBPACK_CHUNK_REMOVE"
289 );
290 chunkGraph.disconnectChunk(this);
291 this.disconnectFromGroups();
292 }
293
294 /**
295 * Moves a module from this chunk to another chunk.

Callers 7

cleanupUnconnectedGroupsFunction · 0.45
StartFunction · 0.45
ModuleImportFunction · 0.45
GlobalFunction · 0.45
ModuleExportFunction · 0.45
_bindClickEventsFunction · 0.45
_setDefaultLayoutButtonFunction · 0.45

Calls 3

disconnectFromGroupsMethod · 0.95
getChunkGraphForChunkMethod · 0.80
disconnectChunkMethod · 0.80

Tested by

no test coverage detected