Attributes
new Dependency(): DependencyReturns:
<Dependency>Attributes
webpack.Dependency.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
webpack.Dependency.createIgnoredModule(context): ModuleAttributes
context:
<string>context directory
Returns:
<Module>ignored module
webpack.Dependency.deserialize(__namedParameters): voidAttributes
__namedParameters:
<ObjectDeserializerContext>context
Returns:
{void}
webpack.Dependency.getCondition(moduleGraph): objectAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
<object>function to determine if the connection is active
webpack.Dependency.getContext(): stringReturns:
<string>a request context
webpack.Dependency.getErrors(moduleGraph): WebpackError[]Attributes
moduleGraph:
<ModuleGraph>module graph
Returns:
<WebpackError[]>errors
Returns errors
webpack.Dependency.getExports(moduleGraph): ExportsSpecAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
{ExportsSpec} export names
Returns the exported names
webpack.Dependency.getModuleEvaluationSideEffectsState(moduleGraph): ConnectionStateAttributes
moduleGraph:
<ModuleGraph>the module graph
Returns:
{ConnectionState} how this dependency connects the module to referencing modules
webpack.Dependency.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
webpack.Dependency.getReference(moduleGraph): neverAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
{never} throws error
Returns the referenced module and export
webpack.Dependency.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
webpack.Dependency.getResourceIdentifier(): stringReturns:
<string>an identifier to merge equal requests
webpack.Dependency.getWarnings(moduleGraph): WebpackError[]Attributes
moduleGraph:
<ModuleGraph>module graph
Returns:
<WebpackError[]>warnings
Returns warnings
webpack.Dependency.serialize(__namedParameters): voidAttributes
__namedParameters:
<ObjectSerializerContext>context
Returns:
{void}
webpack.Dependency.setLoc(startLine, startColumn, endLine, endColumn): voidAttributes
Returns:
{void}
webpack.Dependency.updateHash(hash, context): voidhash{Hash} hash to be updatedcontext{UpdateHashContextDependency} context- Returns: {void}
Update the hash
webpack.Dependency.isLowPriorityDependency(dependency): booleanAttributes
dependency:
<Dependency>dep
Returns:
<boolean>true if the dependency is a low priority dependency