On this page

new ModuleGraphConnection(originModule, dependency, module, explanation?, weak?, condition?): ModuleGraphConnection
Attributes
originModule:<Module>
the referencing module
dependency:<Dependency>
the referencing dependency
module:<Module>
the referenced module
explanation:<string>
some extra detail
the reference is weak
condition:<object>
condition for the connection
Attributes
condition:<object>
conditional:<boolean>
dependency:<Dependency>
explanation:<string>
explanations:
{Set }
module:<Module>
originModule:<Module>
resolvedModule:<Module>
resolvedOriginModule:<Module>
addConnectionStates:<object>
CIRCULAR_CONNECTION:
{CIRCULAR_CONNECTION} While determining the active state, this flag is used to signal a circular connection.
TRANSITIVE_ONLY:
{TRANSITIVE_ONLY} Module itself is not connected, but transitive modules are connected transitively.
webpack.ModuleGraphConnection.addCondition(condition): void
Attributes
condition:<object>
condition for the connection
Returns:
{void}

webpack.ModuleGraphConnection.addExplanation(explanation): void
Attributes
explanation:<string>
the explanation to add
Returns:
{void}

webpack.ModuleGraphConnection.clone(): ModuleGraphConnection

webpack.ModuleGraphConnection.getActiveState(runtime): void
  • runtime {RuntimeSpec} the runtime
  • Returns: {ConnectionState} true: fully active, false: inactive, TRANSITIVE: direct module inactive, but transitive connection maybe active

webpack.ModuleGraphConnection.isActive(runtime): void
  • runtime {RuntimeSpec} the runtime
  • Returns: <boolean> true, if the connection is active

webpack.ModuleGraphConnection.isTargetActive(runtime): void
  • runtime {RuntimeSpec} the runtime
  • Returns: <boolean> true, if the connection is active

webpack.ModuleGraphConnection.setActive(value): void
Attributes
value:<boolean>
active or not
Returns:
{void}