class webpack.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[]booleanDependency[]GroupOptionsAsyncDependenciesBlockanyDependenciesBlockaddBlock(block): void
AsyncDependenciesBlockvoidAdds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)
addDependency(dependency): void
DependencyvoidAdds the provided dependency to the dependencies block.
clearDependenciesAndBlocks(): void
voidClear dependencies and blocks.
deserialize(objectDeserializerContextObjectMiddlewareObject_4): void
ObjectDeserializerContextObjectMiddlewareObject_4voidRestores this instance from the provided deserializer context.
getRootBlock(): DependenciesBlock
DependenciesBlockremoveDependency(dependency): void
DependencyvoidRemoves dependency.
serialize(objectSerializerContextObjectMiddlewareObject_5): void
ObjectSerializerContextObjectMiddlewareObject_5voidSerializes this instance into the provided serializer context.
updateHash(hash, context): void
Updates the hash with the data contributed by this instance.
RawChunkGroupOptions & { name?: null | string } & { entryOptions?: EntryOptions } & { circular?: boolean }EntryOptionsboolean