MCPcopy
hub / github.com/webpack/webpack / isTargetActive

Method isTargetActive

lib/ModuleGraphConnection.js:170–175  ·  view source on GitHub ↗

* Checks whether this module graph connection is target active. * @param {RuntimeSpec} runtime the runtime * @returns {boolean} true, if the connection is active

(runtime)

Source from the content-addressed store, hash-verified

168 * @returns {boolean} true, if the connection is active
169 */
170 isTargetActive(runtime) {
171 if (!this.conditional) return this._active;
172 return (
173 /** @type {GetConditionFn} */ (this.condition)(this, runtime) === true
174 );
175 }
176
177 /**
178 * Returns true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active.

Callers 15

isOptionalMethod · 0.80
hasReasonForChunkMethod · 0.80
hasReasonsMethod · 0.80
_getImportsMethod · 0.80
_tryToAddMethod · 0.80
countOccursInEntryMethod · 0.80
countOccursMethod · 0.80
renderBootstrapMethod · 0.80
applyMethod · 0.80
applyMethod · 0.80
getOutgoingAsyncModulesFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected