MCPcopy
hub / github.com/webpack/webpack / getDepth

Method getDepth

lib/ModuleGraph.js:866–869  ·  view source on GitHub ↗

* Returns the depth of the module. * @param {Module} module the module * @returns {number | null} the depth of the module

(module)

Source from the content-addressed store, hash-verified

864 * @returns {number | null} the depth of the module
865 */
866 getDepth(module) {
867 const mgm = this._getModuleGraphModule(module);
868 return mgm.depth;
869 }
870
871 /**
872 * Updates depth using the provided module.

Callers 4

depthMethod · 0.80
assignDepthMethod · 0.80
applyMethod · 0.80

Calls 1

_getModuleGraphModuleMethod · 0.95

Tested by

no test coverage detected