Attributes
new JavascriptGenerator(): JavascriptGeneratorReturns:
<JavascriptGenerator>generate(module, __namedParameters): Source | nullAttributes
module:
<NormalModule>module for which the code should be generated
__namedParameters:
<GenerateContext>generateError(error, module, generateContext): Source | nullAttributes
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< string >} available types (do not mutate)
sourceBlock(module, block, initFragments, source, generateContext): voidAttributes
module:
<Module>block:
{DependenciesBlock}
initFragments:
{InitFragment< GenerateContext >[]}
source:
<ReplaceSource>generateContext:
<GenerateContext>Returns:
{void}
sourceDependency(module, dependency, initFragments, source, generateContext): voidAttributes
module:
<Module>dependency:
<Dependency>initFragments:
{InitFragment< GenerateContext >[]}
source:
<ReplaceSource>generateContext:
<GenerateContext>Returns:
{void}
sourceModule(module, initFragments, source, generateContext): voidAttributes
module:
<Module>initFragments:
{InitFragment< GenerateContext >[]}
source:
<ReplaceSource>generateContext:
<GenerateContext>Returns:
{void}
updateHash(hash, __namedParameters): voidAttributes
hash:
<Hash>hash that will be modified
__namedParameters:
{UpdateHashContextGenerator}
Returns:
{void}
Attributes
map:
<object>map of types
Returns:
{ByTypeGenerator} generator by type