new ModuleGraphConnection(originModule, dependency, module, explanation?, weak?, condition?): ModuleGraphConnection
Attributes
dependency:
Dependency | nullmodule:
Moduleexplanation:
stringweak:
booleancondition:
false | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState) | nullReturns:
ModuleGraphConnectionCreates an instance of ModuleGraphConnection.
Source Code: lib/ModuleGraphConnection.js#L90Type:
false | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState) | nullType:
booleanType:
Dependency | nullType:
ModuleType:
ModuleType:
booleanModuleGraphConnection.addConnectionStates(a, b): ConnectionState
Attributes
Type:
typeof CIRCULAR_CONNECTIONType:
typeof TRANSITIVE_ONLYType:
stringmoduleGraphConnection.addCondition(condition): void
Attributes
condition:
(moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionStateAdds the provided condition to the module graph connection.
moduleGraphConnection.addExplanation(explanation): void
Attributes
explanation:
stringAdds the provided explanation to the module graph connection.
moduleGraphConnection.clone(): ModuleGraphConnection
Returns:
ModuleGraphConnectionmoduleGraphConnection.getActiveState(runtime): ConnectionState
Attributes
runtime:
RuntimeSpecReturns:
ConnectionStateReturns true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active.
moduleGraphConnection.isActive(runtime): boolean
Attributes
runtime:
RuntimeSpecReturns:
booleanChecks whether this module graph connection is active.
moduleGraphConnection.isTargetActive(runtime): boolean
Attributes
runtime:
RuntimeSpecReturns:
booleanChecks whether this module graph connection is target active.
moduleGraphConnection.setActive(value): void
Attributes
value:
booleanUpdates active using the provided value.