class HtmlGenerator extends Generator
new HtmlGenerator(): HtmlGenerator
Returns:
HtmlGeneratorType:
HtmlGeneratorOptionshtmlGenerator.generate(module, __namedParameters): Source | null
Attributes
Generates generated code for this runtime module.
htmlGenerator.generateError(error, module, generateContext): Source | null
Attributes
Generates fallback output for the provided error condition.
htmlGenerator.getConcatenationBailoutReason(module, context): string | undefined
Attributes
Returns the reason this module cannot be concatenated, when one exists.
htmlGenerator.getSize(module, type?): number
Attributes
Returns the estimated size for the requested source type.
htmlGenerator.getTypes(module): ReadonlySet<string>
Attributes
module:
NormalModuleReturns:
ReadonlySet<string>Returns the source types available for this module.
htmlGenerator.getTypesDependOnIncomingConnections(): boolean
Returns:
booleanhtmlGenerator.sourceBlock(block, source, templateContext): void
Attributes
Processes the provided dependencies block.
htmlGenerator.sourceDependency(dependency, source, templateContext): void
Attributes
Processes the provided module.
htmlGenerator.sourceModule(module, initFragments, source, generateContext): void
Attributes
module:
NormalModuleinitFragments:
InitFragment<GenerateContext>[]source:
ReplaceSourcegenerateContext:
GenerateContextProcesses the provided module.
htmlGenerator.updateHash(hash, __namedParameters): void
Attributes
hash:
Hash__namedParameters:
UpdateHashContextGeneratorUpdates the hash with the data contributed by this instance.
HtmlGenerator.byType(map): ByTypeGenerator
Attributes
Returns:
ByTypeGeneratorReturns generator by type.