On this page

Attributes
new HtmlGenerator(): HtmlGenerator
Attributes
generate(module, __namedParameters): Source | null
Attributes
__namedParameters:<GenerateContext>
Returns:<Source> | <null>

Generates generated code for this runtime module.


generateError(error, module, generateContext): Source | null
Attributes
error:<Error>
generateContext:<GenerateContext>
Returns:<Source> | <null>

Generates fallback output for the provided error condition.


getConcatenationBailoutReason(module, context): string | undefined
Attributes
context:
{ConcatenationBailoutReasonContext}

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< string >
Attributes
Returns:
{ReadonlySet< string >}

Returns the source types available for this module.


sourceBlock(module, block, initFragments, source, generateContext): void
Attributes
block:
{DependenciesBlock}
initFragments:
{InitFragment< GenerateContext >[]}
generateContext:<GenerateContext>
Returns:
{void}

Processes the provided dependencies block.


sourceDependency(module, dependency, initFragments, source, generateContext): void
Attributes
dependency:<Dependency>
initFragments:
{InitFragment< GenerateContext >[]}
generateContext:<GenerateContext>
Returns:
{void}

Processes the provided module.


sourceModule(module, initFragments, source, generateContext): void
Attributes
initFragments:
{InitFragment< GenerateContext >[]}
generateContext:<GenerateContext>
Returns:
{void}

Processes the provided module.


updateHash(hash, __namedParameters): void
Attributes
hash:<Hash>
__namedParameters:
{UpdateHashContextGenerator}
Returns:
{void}

Updates the hash with the data contributed by this instance.


Attributes
Returns:
{ByTypeGenerator}

Returns generator by type.