On this page

new Generator(): Generator
Returns:<Generator>
generate(module, generateContext): Source | null
Attributes
generateContext:<GenerateContext>
Returns:<Source> | <null>

Generates generated code for this runtime module.


getConcatenationBailoutReason(module, context): string | undefined
Attributes

Returns the reason this module cannot be concatenated, when one exists.


getSize(module, type?): number
Attributes
Returns:<number>

Returns the estimated size for the requested source type.


getTypes(module): ReadonlySet
Attributes
Returns:
<ReadonlySet> < <string> >

Returns the source types available for this module.


updateHash(hash, updateHashContextGenerator): void
Attributes
hash:<Hash>
updateHashContextGenerator:<UpdateHashContextGenerator>
Returns:<void>

Updates the hash with the data contributed by this instance.


Attributes

Returns generator by type.