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.
Extended by AsyncDependenciesBlock, Module.
new DependenciesBlock(): DependenciesBlock
DependenciesBlockAsyncDependenciesBlock[]Dependency[]DependenciesBlockdependenciesBlock.addBlock(block): void
AsyncDependenciesBlockAdds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)
dependenciesBlock.addDependency(dependency): void
DependencyAdds the provided dependency to the dependencies block.
dependenciesBlock.clearDependenciesAndBlocks(): void
Clear dependencies and blocks.
dependenciesBlock.deserialize(__namedParameters): void
ObjectDeserializerContextObjectMiddlewareObject_4Restores this instance from the provided deserializer context.
dependenciesBlock.getRootBlock(): DependenciesBlock
DependenciesBlockdependenciesBlock.removeDependency(dependency): void
DependencyRemoves dependency.
dependenciesBlock.serialize(__namedParameters): void
ObjectSerializerContextObjectMiddlewareObject_5Serializes this instance into the provided serializer context.
dependenciesBlock.updateHash(hash, context): void
HashUpdateHashContextDependencyUpdates the hash with the data contributed by this instance.