Attributes
new Dependency(): DependencyReturns:
<Dependency>Attributes
couldAffectReferencingModule(): boolean | symboltrue, when changes to the referenced module could affect the referencing module; TRANSITIVE, when changes to the referenced module could affect referencing modules of the referencing module
createIgnoredModule(context): ModuleAttributes
context:
<string>context directory
Returns:
<Module>ignored module
deserialize(__namedParameters): voidAttributes
__namedParameters:
<ObjectDeserializerContext>context
Returns:
{void}
getCondition(moduleGraph): object | nullAttributes
moduleGraph:
<ModuleGraph>module graph
getContext(): string | undefinedReturns:
<string>
|
<undefined>a request context
getErrors(moduleGraph): WebpackError[] | null | undefinedAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
<WebpackError[]>
|
<null>
|
<undefined>errors
Returns errors
getExports(moduleGraph): undefinedAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
<undefined>export names
Returns the exported names
getModuleEvaluationSideEffectsState(moduleGraph): ConnectionStateAttributes
moduleGraph:
<ModuleGraph>the module graph
Returns:
{ConnectionState} how this dependency connects the module to referencing modules
getNumberOfIdOccurrences(): numberReturns:
<number>count how often the id is used in this dependency
implement this method to allow the occurrence order plugin to count correctly
getReference(moduleGraph): neverAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
{never} throws error
Returns the referenced module and export
getReferencedExports(moduleGraph, runtime): string[]Attributes
moduleGraph:
<ModuleGraph>module graph
runtime:
{RuntimeSpec} the runtime for which the module is analysed
Returns:
<string[]>referenced exports
Returns list of exports referenced by this dependency
getResourceIdentifier(): string | nullgetWarnings(moduleGraph): WebpackError[] | null | undefinedAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
<WebpackError[]>
|
<null>
|
<undefined>warnings
Returns warnings
serialize(__namedParameters): voidAttributes
__namedParameters:
<ObjectSerializerContext>context
Returns:
{void}
setLoc(startLine, startColumn, endLine, endColumn): voidAttributes
Returns:
{void}
updateHash(hash, context): voidhash{Hash} hash to be updatedcontext{UpdateHashContextDependency} context- Returns: {void}
Update the hash
Attributes
dependency:
<Dependency>dep
Returns:
<boolean>true if the dependency is a low priority dependency