class webpack.AssetBytesGenerator extends Generator
Represents the generator runtime component.
new AssetBytesGenerator(): AssetBytesGenerator
Returns:
AssetBytesGeneratorgenerate(module, generateContext): Source | null
Attributes
Generates generated code for this runtime module.
generateError(error, module, generateContext): Source | null
Attributes
Generates fallback output for the provided error condition.
getConcatenationBailoutReason(module, context): string | undefined
Attributes
Returns the reason this module cannot be concatenated, when one exists.
getSize(module, type?): number
Attributes
Returns the estimated size for the requested source type.
getTypes(module): ReadonlySet<string>
Attributes
module:
NormalModuleReturns:
ReadonlySet<string>Returns the source types available for this module.
getTypesDependOnIncomingConnections(): boolean
Returns:
booleanwhether getTypes() depends on the module's incoming connections
updateHash(hash, updateHashContextGenerator): void
Attributes
Updates the hash with the data contributed by this instance.
Attributes
Returns:
ByTypeGeneratorReturns generator by type.