Attributes
new ConstDependency(expression, range, runtimeRequirements?): ConstDependencyAttributes
expression:
<string>the expression
range:
{number|Tuple<number, number>} the source range
runtimeRequirements:
<string[]>runtime requirements
Returns:
<ConstDependency>Attributes
category:
<string>disconnect:
<any>expression:
<string>loc:
{DependencyLocation}
module:
<any>optional:
<boolean>range:
{number|Tuple<number, number>}
runtimeRequirements:
{Set
}
type:
<string>weak:
<boolean>EXPORTS_OBJECT_REFERENCED:
{string[][]}
NO_EXPORTS_REFERENCED:
{string[][]}
Template:
{ConstDependencyTemplate}
TRANSITIVE:
<symbol>webpack.dependencies.ConstDependency.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.dependencies.ConstDependency.createIgnoredModule(context): ModuleAttributes
context:
<string>context directory
Returns:
<Module>ignored module
webpack.dependencies.ConstDependency.deserialize(__namedParameters): voidAttributes
__namedParameters:
<ObjectDeserializerContext>context
Returns:
{void}
webpack.dependencies.ConstDependency.getCondition(moduleGraph): objectAttributes
moduleGraph:
<ModuleGraph>module graph
Returns:
<object>function to determine if the connection is active
webpack.dependencies.ConstDependency.getContext(): stringReturns:
<string>a request context
webpack.dependencies.ConstDependency.getErrors(moduleGraph): WebpackError[]Attributes
moduleGraph:
<ModuleGraph>Returns:
<WebpackError[]>Returns errors
webpack.dependencies.ConstDependency.getExports(moduleGraph): ExportsSpecAttributes
moduleGraph:
<ModuleGraph>Returns:
{ExportsSpec}
Returns the exported names
webpack.dependencies.ConstDependency.getModuleEvaluationSideEffectsState(moduleGraph): ConnectionStateAttributes
moduleGraph:
<ModuleGraph>the module graph
Returns:
{ConnectionState} how this dependency connects the module to referencing modules
webpack.dependencies.ConstDependency.getNumberOfIdOccurrences(): numberReturns:
<number>implement this method to allow the occurrence order plugin to count correctly
webpack.dependencies.ConstDependency.getReference(moduleGraph): neverStability: 0Deprecated
Attributes
moduleGraph:
<ModuleGraph>Returns:
{never}
Returns the referenced module and export
webpack.dependencies.ConstDependency.getReferencedExports(moduleGraph, runtime): string[]Attributes
moduleGraph:
<ModuleGraph>runtime:
{RuntimeSpec}
Returns:
<string[]>Returns list of exports referenced by this dependency
webpack.dependencies.ConstDependency.getResourceIdentifier(): stringReturns:
<string>an identifier to merge equal requests
webpack.dependencies.ConstDependency.getWarnings(moduleGraph): WebpackError[]Attributes
moduleGraph:
<ModuleGraph>Returns:
<WebpackError[]>Returns warnings
webpack.dependencies.ConstDependency.serialize(__namedParameters): voidAttributes
__namedParameters:
<ObjectSerializerContext>context
Returns:
{void}
webpack.dependencies.ConstDependency.setLoc(startLine, startColumn, endLine, endColumn): voidAttributes
Returns:
{void}
webpack.dependencies.ConstDependency.updateHash(hash, context): voidhash{Hash} hash to be updatedcontext{UpdateHashContextDependency} context- Returns: {void}
Update the hash
webpack.dependencies.ConstDependency.isLowPriorityDependency(dependency): booleanAttributes
dependency:
<Dependency>dep
Returns:
<boolean>true if the dependency is a low priority dependency