Attributes
new HtmlGenerator(): HtmlGeneratorReturns:
<HtmlGenerator>Attributes
options:
<HtmlGeneratorOptions>generate(module, __namedParameters): Source | nullAttributes
module:
<NormalModule>__namedParameters:
<GenerateContext>Generates generated code for this runtime module.
generateError(error, module, generateContext): Source | nullAttributes
Generates fallback output for the provided error condition.
getConcatenationBailoutReason(module, context): string | undefinedAttributes
module:
<NormalModule>context:
{ConcatenationBailoutReasonContext}
Returns:
<string>
|
<undefined>Returns the reason this module cannot be concatenated, when one exists.
getSize(module, type?): numberAttributes
module:
<NormalModule>type:
<string>Returns:
<number>Returns the estimated size for the requested source type.
getTypes(module): ReadonlySet< string >Attributes
module:
<NormalModule>Returns:
{ReadonlySet< string >}
Returns the source types available for this module.
sourceBlock(module, block, initFragments, source, generateContext): voidAttributes
module:
<NormalModule>block:
{DependenciesBlock}
initFragments:
{InitFragment< GenerateContext >[]}
source:
<ReplaceSource>generateContext:
<GenerateContext>Returns:
{void}
Processes the provided dependencies block.
sourceDependency(module, dependency, initFragments, source, generateContext): voidAttributes
module:
<NormalModule>dependency:
<Dependency>initFragments:
{InitFragment< GenerateContext >[]}
source:
<ReplaceSource>generateContext:
<GenerateContext>Returns:
{void}
Processes the provided module.
sourceModule(module, initFragments, source, generateContext): voidAttributes
module:
<NormalModule>initFragments:
{InitFragment< GenerateContext >[]}
source:
<ReplaceSource>generateContext:
<GenerateContext>Returns:
{void}
Processes the provided module.
updateHash(hash, __namedParameters): voidAttributes
hash:
<Hash>__namedParameters:
{UpdateHashContextGenerator}
Returns:
{void}
Updates the hash with the data contributed by this instance.
Attributes
map:
<object>Returns:
{ByTypeGenerator}
Returns generator by type.