class webpack.ByTypeGenerator extends GeneratorRepresents the generator runtime component.
new ByTypeGenerator(): ByTypeGeneratorReturns:
<ByTypeGenerator>generateError(error:<Error>, module:<NormalModule>, generateContext:<GenerateContext>) =><Source>|<null>map{{ [index: string]: Generator | undefined }}
generate(module, generateContext): Source | nullAttributes
Generates generated code for this runtime module.
getConcatenationBailoutReason(module, context): string | undefinedAttributes
Returns the reason this module cannot be concatenated, when one exists.
getSize(module, type?): numberAttributes
Returns the estimated size for the requested source type.
getTypes(module): ReadonlySet<string>Attributes
module:
<NormalModule>Returns:
{ReadonlySet
}
Returns the source types available for this module.
updateHash(hash, updateHashContextGenerator): voidAttributes
Updates the hash with the data contributed by this instance.
map{{ [index: string]: Generator | undefined }}- Returns:
<ByTypeGenerator>
Returns generator by type.