On this page

  • {NullDependency}
new ConstDependency(expression, range, runtimeRequirements?): ConstDependency
Attributes
expression:<string>
range:
{number|Tuple<number, number>}
runtimeRequirements:<string[]>
Returns:
{ConstDependency}
Attributes
category:<string>
disconnect:<any>
expression:<string>
loc:
{DependencyLocation}
module:<any>
optional:<boolean>
range:
{number|Tuple<number, number>}
runtimeRequirements:
{Set }
EXPORTS_OBJECT_REFERENCED:
{string[][]}
NO_EXPORTS_REFERENCED:
{string[][]}
Template:
{ConstDependencyTemplate}
TRANSITIVE:<symbol>
couldAffectReferencingModule(): boolean | symbol
createIgnoredModule(context): Module
Attributes
context:<string>
Returns:<Module>
deserialize(__namedParameters): void
Attributes
__namedParameters:<ObjectDeserializerContext>
Returns:
{void}
getCondition(moduleGraph): false | object
Attributes
moduleGraph:<ModuleGraph>
Returns:
{false|object}
getContext(): string
Returns:<string>
getErrors(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns errors

getExports(moduleGraph): ExportsSpec
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ExportsSpec}

Returns the exported names

getModuleEvaluationSideEffectsState(moduleGraph): ConnectionState
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ConnectionState}
getNumberOfIdOccurrences(): number
Returns:<number>

implement this method to allow the occurrence order plugin to count correctly

getReference(moduleGraph): never
Stability: 0Deprecated
Attributes
moduleGraph:<ModuleGraph>
Returns:
{never}

Returns the referenced module and export

getReferencedExports(moduleGraph, runtime): string[]
Attributes
moduleGraph:<ModuleGraph>
runtime:
{RuntimeSpec}
Returns:<string[]>

Returns list of exports referenced by this dependency

getResourceIdentifier(): string
Returns:<string>
getWarnings(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns warnings

serialize(__namedParameters): void
Attributes
__namedParameters:<ObjectSerializerContext>
Returns:
{void}
setLoc(startLine, startColumn, endLine, endColumn): void
Attributes
startLine:<number>
startColumn:<number>
endLine:<number>
endColumn:<number>
Returns:
{void}
updateHash(hash, context): void
  • hash {Hash}
  • context {UpdateHashContextDependency}
  • Returns: {void}

Update the hash

Attributes
dependency:<Dependency>
Returns:<boolean>

  • {ModuleDependency}
new HarmonyImportDependency(request, sourceOrder, phase?, attributes?): HarmonyImportDependency
Attributes
request:<string>
sourceOrder:<number>
phase:
{0|1|2}
attributes:
{ImportAttributes}
Returns:
{HarmonyImportDependency}
  • attributes {ImportAttributes}
  • category <string>
  • disconnect <any>
  • loc {DependencyLocation}
  • module <any>
  • optional <boolean>
  • phase {ImportPhaseType}
  • range {Tuple<number, number>}
  • request <string>
  • sourceOrder <number>
  • type <string>
  • userRequest <string>
  • weak <boolean>
  • ExportPresenceModes {object}
  • EXPORTS_OBJECT_REFERENCED {string[][]}
  • getNonOptionalPart {object}
  • NO_EXPORTS_REFERENCED {string[][]}
  • Template {HarmonyImportDependencyTemplate}
  • TRANSITIVE <symbol>
couldAffectReferencingModule(): boolean | symbol
createIgnoredModule(context): Module
Attributes
context:<string>
Returns:<Module>
deserialize(__namedParameters): void
Attributes
__namedParameters:<ObjectDeserializerContext>
Returns:
{void}
getCondition(moduleGraph): false | object
Attributes
moduleGraph:<ModuleGraph>
Returns:
{false|object}
getContext(): string
Returns:<string>
getErrors(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns errors

getExports(moduleGraph): ExportsSpec
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ExportsSpec}

Returns the exported names

getImportStatement(update, __namedParameters): Tuple<string, string>
Attributes
update:<boolean>
__namedParameters:
{DependencyTemplateContext}
Returns:
{Tuple<string, string>}
getImportVar(moduleGraph): string
Attributes
moduleGraph:<ModuleGraph>
Returns:<string>
getLinkingErrors(moduleGraph, ids, additionalMessage): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>
additionalMessage:<string>
getModuleEvaluationSideEffectsState(moduleGraph): ConnectionState
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ConnectionState}
getModuleExports(__namedParameters): void
  • __namedParameters {DependencyTemplateContext}
  • Returns: <string>
getNumberOfIdOccurrences(): number
Returns:<number>

implement this method to allow the occurrence order plugin to count correctly

getReference(moduleGraph): never
Stability: 0Deprecated
Attributes
moduleGraph:<ModuleGraph>
Returns:
{never}

Returns the referenced module and export

getReferencedExports(moduleGraph, runtime): string[]
Attributes
moduleGraph:<ModuleGraph>
runtime:
{RuntimeSpec}
Returns:<string[]>

Returns list of exports referenced by this dependency

getResourceIdentifier(): string
Returns:<string>
getWarnings(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns warnings

serialize(__namedParameters): void
Attributes
__namedParameters:<ObjectSerializerContext>
Returns:
{void}
setLoc(startLine, startColumn, endLine, endColumn): void
Attributes
startLine:<number>
startColumn:<number>
endLine:<number>
endColumn:<number>
Returns:
{void}
updateHash(hash, context): void
  • hash {Hash}
  • context {UpdateHashContextDependency}
  • Returns: {void}

Update the hash

Attributes
dependency:<Dependency>
Returns:<boolean>

Attributes
  • {HarmonyImportDependency}
new ModuleDependency(request, sourceOrder?): ModuleDependency
Attributes
request:<string>
sourceOrder:<number>
Returns:
{ModuleDependency}
Attributes
category:<string>
disconnect:<any>
loc:
{DependencyLocation}
module:<any>
optional:<boolean>
range:
{Tuple<number, number>}
request:<string>
sourceOrder:<number>
userRequest:<string>
EXPORTS_OBJECT_REFERENCED:
{string[][]}
NO_EXPORTS_REFERENCED:
{string[][]}
Template:
{DependencyTemplate}
TRANSITIVE:<symbol>
couldAffectReferencingModule(): boolean | symbol
createIgnoredModule(context): Module
Attributes
context:<string>
Returns:<Module>
deserialize(__namedParameters): void
Attributes
__namedParameters:<ObjectDeserializerContext>
Returns:
{void}
getCondition(moduleGraph): false | object
Attributes
moduleGraph:<ModuleGraph>
Returns:
{false|object}
getContext(): string
Returns:<string>
getErrors(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns errors

getExports(moduleGraph): ExportsSpec
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ExportsSpec}

Returns the exported names

getModuleEvaluationSideEffectsState(moduleGraph): ConnectionState
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ConnectionState}
getNumberOfIdOccurrences(): number
Returns:<number>

implement this method to allow the occurrence order plugin to count correctly

getReference(moduleGraph): never
Stability: 0Deprecated
Attributes
moduleGraph:<ModuleGraph>
Returns:
{never}

Returns the referenced module and export

getReferencedExports(moduleGraph, runtime): string[]
Attributes
moduleGraph:<ModuleGraph>
runtime:
{RuntimeSpec}
Returns:<string[]>

Returns list of exports referenced by this dependency

getResourceIdentifier(): string
Returns:<string>
getWarnings(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns warnings

serialize(__namedParameters): void
Attributes
__namedParameters:<ObjectSerializerContext>
Returns:
{void}
setLoc(startLine, startColumn, endLine, endColumn): void
Attributes
startLine:<number>
startColumn:<number>
endLine:<number>
endColumn:<number>
Returns:
{void}
updateHash(hash, context): void
  • hash {Hash}
  • context {UpdateHashContextDependency}
  • Returns: {void}

Update the hash

Attributes
dependency:<Dependency>
Returns:<boolean>

Attributes
  • {ConstDependency}
new NullDependency(): NullDependency
Returns:
{NullDependency}
Attributes
category:<string>
disconnect:<any>
loc:
{DependencyLocation}
module:<any>
optional:<boolean>
EXPORTS_OBJECT_REFERENCED:
{string[][]}
NO_EXPORTS_REFERENCED:
{string[][]}
Template:
{NullDependencyTemplate}
TRANSITIVE:<symbol>
couldAffectReferencingModule(): boolean | symbol
createIgnoredModule(context): Module
Attributes
context:<string>
Returns:<Module>
deserialize(__namedParameters): void
Attributes
__namedParameters:<ObjectDeserializerContext>
Returns:
{void}
getCondition(moduleGraph): false | object
Attributes
moduleGraph:<ModuleGraph>
Returns:
{false|object}
getContext(): string
Returns:<string>
getErrors(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns errors

getExports(moduleGraph): ExportsSpec
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ExportsSpec}

Returns the exported names

getModuleEvaluationSideEffectsState(moduleGraph): ConnectionState
Attributes
moduleGraph:<ModuleGraph>
Returns:
{ConnectionState}
getNumberOfIdOccurrences(): number
Returns:<number>

implement this method to allow the occurrence order plugin to count correctly

getReference(moduleGraph): never
Stability: 0Deprecated
Attributes
moduleGraph:<ModuleGraph>
Returns:
{never}

Returns the referenced module and export

getReferencedExports(moduleGraph, runtime): string[]
Attributes
moduleGraph:<ModuleGraph>
runtime:
{RuntimeSpec}
Returns:<string[]>

Returns list of exports referenced by this dependency

getResourceIdentifier(): string
Returns:<string>
getWarnings(moduleGraph): WebpackError[]
Attributes
moduleGraph:<ModuleGraph>

Returns warnings

serialize(__namedParameters): void
Attributes
__namedParameters:<ObjectSerializerContext>
Returns:
{void}
setLoc(startLine, startColumn, endLine, endColumn): void
Attributes
startLine:<number>
startColumn:<number>
endLine:<number>
endColumn:<number>
Returns:
{void}
updateHash(hash, context): void
  • hash {Hash}
  • context {UpdateHashContextDependency}
  • Returns: {void}

Update the hash

Attributes
dependency:<Dependency>
Returns:<boolean>