new Template(): Template
Returns:
TemplateType:
numberType:
numberTemplate.asString(str): string
Attributes
Returns a single string from array.
Template.getFunctionContent(fn): string
Attributes
fn:
StringableReturns:
stringGets function content.
Template.getModulesArrayBounds(modules): false | [number, number]
Attributes
Gets modules array bounds.
Template.indent(s): string
Attributes
Returns converted identity.
Template.numberToIdentifier(n): string
Attributes
Number to identifier.
Template.numberToIdentifierContinuation(n): string
Attributes
Number to identifier continuation.
Template.prefix(s, prefix): string
Attributes
Returns new prefix string.
Template.renderChunkModules(renderContext, modules, renderModule, prefix?): Source | null
Attributes
Renders chunk modules.
Template.renderChunkRuntimeModules(runtimeModules, renderContext): Source
Attributes
Renders chunk runtime modules.
Template.renderRuntimeModules(runtimeModules, renderContext): Source
Attributes
runtimeModules:
RuntimeModule[]renderContext:
RenderContextJavascriptModulesPlugin & { codeGenerationResults?: CodeGenerationResults }Returns:
SourceRenders runtime modules.
Template.toComment(str): string
Attributes
Returns a commented version of string.
Template.toIdentifier(str): string
Attributes
Returns created identifier.
Template.toNormalComment(str): string
Attributes
Returns a commented version of string.
Template.toPath(str): string
Attributes
Returns normalized bundle-safe path.