new Generator(): GeneratorReturns:
<Generator>generate(module, __namedParameters): Source | nullAttributes
module:
<NormalModule>module for which the code should be generated
__namedParameters:
{GenerateContext}
getConcatenationBailoutReason(module, context): string | undefinedAttributes
module:
<NormalModule>module for which the bailout reason should be determined
context:
{ConcatenationBailoutReasonContext} context
Returns:
<string>
|
<undefined>reason why this module can't be concatenated, undefined when it can be concatenated
getSize(module, type?): numberAttributes
module:
<NormalModule>the module
type:
<string>source type
Returns:
<number>estimate size of the module
getTypes(module): ReadonlySet<string>Attributes
module:
<NormalModule>fresh module
Returns:
{ReadonlySet
} available types (do not mutate)
updateHash(hash, __namedParameters): voidhash{Hash} hash that will be modified__namedParameters{UpdateHashContextGenerator}- Returns: {void}
Attributes
map:
<object>map of types
Returns:
{ByTypeGenerator} generator by type