MCPcopy
hub / github.com/webpack/webpack / removeChunk

Method removeChunk

lib/Module.js:542–548  ·  view source on GitHub ↗

* Removes the provided chunk from the module. * @deprecated * @param {Chunk} chunk the chunk * @returns {void}

(chunk)

Source from the content-addressed store, hash-verified

540 * @returns {void}
541 */
542 removeChunk(chunk) {
543 return ChunkGraph.getChunkGraphForModule(
544 this,
545 "Module.removeChunk",
546 "DEP_WEBPACK_MODULE_REMOVE_CHUNK"
547 ).disconnectChunkAndModule(chunk, this);
548 }
549
550 /**
551 * Checks whether this module is in the provided chunk.

Callers 3

disconnectFromGroupsMethod · 0.45
webpack.config.jsFile · 0.45

Calls 2

Tested by

no test coverage detected