new ModuleGraphConnection(originModule, dependency, module, explanation?, weak?, condition?): ModuleGraphConnectionAttributes
Returns:
<ModuleGraphConnection>Creates an instance of ModuleGraphConnection.
Attributes
addCondition(condition): voidAttributes
condition:
<object>Returns:
{void}
Adds the provided condition to the module graph connection.
addExplanation(explanation): voidAttributes
explanation:
<string>Returns:
{void}
Adds the provided explanation to the module graph connection.
clone(): ModuleGraphConnectionReturns:
<ModuleGraphConnection>getActiveState(runtime): voidruntime{RuntimeSpec}- Returns: {ConnectionState}
Returns true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active.
isActive(runtime): voidruntime{RuntimeSpec}- Returns:
<boolean>
Checks whether this module graph connection is active.
isTargetActive(runtime): voidruntime{RuntimeSpec}- Returns:
<boolean>
Checks whether this module graph connection is target active.
setActive(value): voidAttributes
value:
<boolean>Returns:
{void}
Updates active using the provided value.