MCPcopy
hub / github.com/webpack/webpack / setDepth

Method setDepth

lib/ModuleGraph.js:877–880  ·  view source on GitHub ↗

* Updates depth using the provided module. * @param {Module} module the module * @param {number} depth the depth of the module * @returns {void}

(module, depth)

Source from the content-addressed store, hash-verified

875 * @returns {void}
876 */
877 setDepth(module, depth) {
878 const mgm = this._getModuleGraphModule(module);
879 mgm.depth = depth;
880 }
881
882 /**
883 * Sets depth if lower.

Callers 3

depthMethod · 0.80
assignDepthMethod · 0.80
assignDepthsMethod · 0.80

Calls 1

_getModuleGraphModuleMethod · 0.95

Tested by

no test coverage detected