MCPcopy
hub / github.com/webpack/webpack / getActiveState

Method getActiveState

lib/ModuleGraphConnection.js:182–185  ·  view source on GitHub ↗

* Returns true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active. * @param {RuntimeSpec} runtime the runtime * @returns {ConnectionState} true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection ma

(runtime)

Source from the content-addressed store, hash-verified

180 * @returns {ConnectionState} true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active
181 */
182 getActiveState(runtime) {
183 if (!this.conditional) return this._active;
184 return /** @type {GetConditionFn} */ (this.condition)(this, runtime);
185 }
186
187 /**
188 * Updates active using the provided value.

Callers 5

extractBlockModulesFunction · 0.80
addDependenciesMethod · 0.80
processModuleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected