DependenciesBlock is the base class for all Module classes in webpack. It describes a "block" of dependencies which are pointers to other DependenciesBlock instances. For example when a Module has a CommonJs require statement, the DependencyBlock for the CommonJs module would be added as a dependency to the Module. DependenciesBlock is inherited by two types of classes: Module subclasses and AsyncDependenciesBlock subclasses. The only difference between the two is that AsyncDependenciesBlock subclasses are used for code-splitting (async boundary) and Module subclasses are not.
new DependenciesBlock(): DependenciesBlockDependenciesBlockaddBlock(block): voidAsyncDependenciesBlockvoidAdds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)
addDependency(dependency): voidDependencyvoidAdds the provided dependency to the dependencies block.
clearDependenciesAndBlocks(): voidvoidClear dependencies and blocks.
deserialize(objectDeserializerContextObjectMiddlewareObject_4): voidObjectDeserializerContextObjectMiddlewareObject_4voidRestores this instance from the provided deserializer context.
getRootBlock(): DependenciesBlockDependenciesBlockremoveDependency(dependency): voidDependencyvoidRemoves dependency.
serialize(objectSerializerContextObjectMiddlewareObject_5): voidObjectSerializerContextObjectMiddlewareObject_5voidSerializes this instance into the provided serializer context.
updateHash(hash, context): voidUpdates the hash with the data contributed by this instance.