On this page

class webpack.AsyncDependenciesBlock extends DependenciesBlock
new AsyncDependenciesBlock(groupOptions, loc?, request?): AsyncDependenciesBlock
Attributes
options for the group
request:string | null
the request
Attributes
chunkName:string | null
circular:boolean
dependencies:Dependency[]
module:any
request:string | null
addBlock(block): void
Attributes

Adds a DependencyBlock to DependencyBlock relationship. This is used for when a Module has a AsyncDependencyBlock tie (for code-splitting)


addDependency(dependency): void
Attributes
dependency:Dependency
Returns:void

Adds the provided dependency to the dependencies block.


clearDependenciesAndBlocks(): void
Returns:void

Clear dependencies and blocks.


deserialize(objectDeserializerContext): void
Attributes
objectDeserializerContext:ObjectDeserializerContext
Returns:void

Restores this instance from the provided deserializer context.


getRootBlock(): DependenciesBlock

removeDependency(dependency): void
Attributes
dependency:Dependency
Returns:void

Removes dependency.


serialize(objectSerializerContext): void
Attributes
objectSerializerContext:ObjectSerializerContext
Returns:void

Serializes this instance into the provided serializer context.


updateHash(hash, context): void
Attributes
hash:Hash
the hash used to track dependencies
Returns:void

Updates the hash with the data contributed by this instance.

Type:RawChunkGroupOptions & { name?: null | string } & { entryOptions?: EntryOptions } & { circular?: boolean }
Attributes
name:null | string
Attributes
entryOptions:EntryOptions
Attributes
circular:boolean