On this page

new ModuleGraphConnection(originModule, dependency, module, explanation?, weak?, condition?): ModuleGraphConnection
Attributes
originModule:<Module> | <null>
dependency:<Dependency> | <null>
module:<Module>
explanation:<string>
condition:
<false> | <object> | <null>

Creates an instance of ModuleGraphConnection.

addCondition(condition): void
Attributes
condition:<object>
Returns:
{void}

Adds the provided condition to the module graph connection.


addExplanation(explanation): void
Attributes
explanation:<string>
Returns:
{void}

Adds the provided explanation to the module graph connection.


clone(): ModuleGraphConnection

getActiveState(runtime): ConnectionState
Attributes

Returns true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active.


isActive(runtime): boolean
Attributes
Returns:<boolean>

Checks whether this module graph connection is active.


isTargetActive(runtime): boolean
Attributes
Returns:<boolean>

Checks whether this module graph connection is target active.


setActive(value): void
Attributes
value:<boolean>
Returns:
{void}

Updates active using the provided value.