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