Extended by ByTypeGenerator, JavascriptGenerator, JsonGenerator, AssetGenerator, AssetSourceGenerator, AssetBytesGenerator, CssGenerator, HtmlGenerator.
new Generator(): Generator
Returns:
Generatorgenerator.generate(module, __namedParameters): Source | null
Attributes
Generates generated code for this runtime module.
generator.getConcatenationBailoutReason(module, context): string | undefined
Attributes
Returns the reason this module cannot be concatenated, when one exists.
generator.getSize(module, type?): number
Attributes
Returns the estimated size for the requested source type.
generator.getTypes(module): ReadonlySet<string>
Attributes
module:
NormalModuleReturns:
ReadonlySet<string>Returns the source types available for this module.
generator.getTypesDependOnIncomingConnections(): boolean
Returns:
booleangenerator.updateHash(hash, __namedParameters): void
Attributes
hash:
Hash__namedParameters:
UpdateHashContextGeneratorUpdates the hash with the data contributed by this instance.
Generator.byType(map): ByTypeGenerator
Attributes
Returns:
ByTypeGeneratorReturns generator by type.