MCPcopy
hub / github.com/webpack/webpack / getNumberOfModuleChunks

Method getNumberOfModuleChunks

lib/ChunkGraph.js:630–633  ·  view source on GitHub ↗

* Gets number of module chunks. * @param {Module} module the module * @returns {number} the number of chunk which contain the module

(module)

Source from the content-addressed store, hash-verified

628 * @returns {number} the number of chunk which contain the module
629 */
630 getNumberOfModuleChunks(module) {
631 const cgm = this._getChunkGraphModule(module);
632 return cgm.chunks.size;
633 }
634
635 /**
636 * Gets module runtimes.

Callers 10

getNumberOfChunksMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
_tryToAddMethod · 0.80
countOccursMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80

Calls 1

_getChunkGraphModuleMethod · 0.95

Tested by

no test coverage detected