class webpack.dependencies.ModuleDependency extends Dependencynew ModuleDependency(request, sourceOrder?): ModuleDependencystringnumberModuleDependencyCreates an instance of ModuleDependency.
stringanyanybooleanstringnumberstringstringbooleanstring[][]string[][]typeof DependencyTemplatesymbolcanConcatenate(): booleanbooleanReturns true if this dependency can be concatenated
couldAffectReferencingModule(): boolean | symbolCould affect referencing module.
createIgnoredModule(context): ModuleCreates an ignored module.
deserialize(objectDeserializerContext): voidObjectDeserializerContextvoidRestores this instance from the provided deserializer context.
getCondition(moduleGraph): false | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState) | nullModuleGraphfalse | ((moduleGraphConnection: ModuleGraphConnection, runtime: RuntimeSpec) => ConnectionState) | nullReturns function to determine if the connection is active.
getContext(): string | undefinedReturns a request context.
getErrors(moduleGraph): WebpackError[] | null | undefinedModuleGraphWebpackError[] | null | undefinedReturns errors.
getExports(moduleGraph): ExportsSpec | undefinedModuleGraphExportsSpec | undefinedReturns the exported names
getModuleEvaluationSideEffectsState(moduleGraph): ConnectionStateModuleGraphConnectionStateGets module evaluation side effects state.
getNumberOfIdOccurrences(): numbernumberimplement this method to allow the occurrence order plugin to count correctly
getReference(moduleGraph): neverModuleGraphneverReturns the referenced module and export
getReferencedExports(moduleGraph, runtime): (string[] | ReferencedExport)[]Returns list of exports referenced by this dependency
getResourceIdentifier(): string | nullstring | nullReturns an identifier to merge equal requests.
getWarnings(moduleGraph): WebpackError[] | null | undefinedModuleGraphWebpackError[] | null | undefinedReturns warnings.
serialize(objectSerializerContext): voidObjectSerializerContextvoidSerializes this instance into the provided serializer context.
setLoc(startLine, startColumn, endLine, endColumn): voidUpdates loc using the provided start line.
updateHash(hash, context): voidUpdates the hash with the data contributed by this instance.
DependencybooleanReturns true if the dependency can be concatenated (scope hoisting).
DependencybooleanReturns true if the dependency is a low priority dependency.