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