MCPcopy
hub / github.com/webpack/webpack / removeModule

Method removeModule

lib/Chunk.js:200–206  ·  view source on GitHub ↗

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

(module)

Source from the content-addressed store, hash-verified

198 * @returns {void}
199 */
200 removeModule(module) {
201 ChunkGraph.getChunkGraphForChunk(
202 this,
203 "Chunk.removeModule",
204 "DEP_WEBPACK_CHUNK_REMOVE_MODULE"
205 ).disconnectChunkAndModule(this, module);
206 }
207
208 /**
209 * Gets the number of modules in this chunk.

Callers 1

webpack.config.jsFile · 0.80

Calls 2

getChunkGraphForChunkMethod · 0.80

Tested by

no test coverage detected