MCPcopy
hub / github.com/webpack/webpack / getNumberOfModules

Method getNumberOfModules

lib/Chunk.js:213–219  ·  view source on GitHub ↗

* Gets the number of modules in this chunk. * @deprecated * @returns {number} the number of module which are contained in this chunk

()

Source from the content-addressed store, hash-verified

211 * @returns {number} the number of module which are contained in this chunk
212 */
213 getNumberOfModules() {
214 return ChunkGraph.getChunkGraphForChunk(
215 this,
216 "Chunk.getNumberOfModules",
217 "DEP_WEBPACK_CHUNK_GET_NUMBER_OF_MODULES"
218 ).getNumberOfChunkModules(this);
219 }
220
221 /**
222 * @deprecated

Callers 1

webpack.config.jsFile · 0.80

Calls 2

getChunkGraphForChunkMethod · 0.80

Tested by

no test coverage detected