Skip to main content
webpack / Template

Class: Template

Defined in: webpack/types.d.ts:18613

Constructors

Constructor

new Template(): Template
Defined in: webpack/types.d.ts:18614

Returns

Template

Properties

NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS

static NUMBER_OF_IDENTIFIER_CONTINUATION_CHARS: number
Defined in: webpack/types.d.ts:18642

NUMBER_OF_IDENTIFIER_START_CHARS

static NUMBER_OF_IDENTIFIER_START_CHARS: number
Defined in: webpack/types.d.ts:18643

Methods

asString()

static asString(str): string
Defined in: webpack/types.d.ts:18624

Parameters

str
string | string[]

Returns

string

getFunctionContent()

static getFunctionContent(fn): string
Defined in: webpack/types.d.ts:18615

Parameters

fn
Stringable

Returns

string

getModulesArrayBounds()

static getModulesArrayBounds(modules): false | [number, number]
Defined in: webpack/types.d.ts:18625

Parameters

modules
WithId[]

Returns

false | [number, number]

indent()

static indent(s): string
Defined in: webpack/types.d.ts:18622

Parameters

s
string | string[]

Returns

string

numberToIdentifier()

static numberToIdentifier(n): string
Defined in: webpack/types.d.ts:18620

Parameters

n
number

Returns

string

numberToIdentifierContinuation()

static numberToIdentifierContinuation(n): string
Defined in: webpack/types.d.ts:18621

Parameters

n
number

Returns

string

prefix()

static prefix(s, prefix): string
Defined in: webpack/types.d.ts:18623

Parameters

s
string | string[]
prefix
string

Returns

string

renderChunkModules()

static renderChunkModules(renderContext, modules, renderModule, prefix?): Source
Defined in: webpack/types.d.ts:18626

Parameters

renderContext
ChunkRenderContextJavascriptModulesPlugin
modules
Module[]
renderModule
(module, renderInArray?) => Source
prefix?
string

Returns

Source

renderChunkRuntimeModules()

static renderChunkRuntimeModules(runtimeModules, renderContext): Source
Defined in: webpack/types.d.ts:18638

Parameters

runtimeModules
RuntimeModule[]
renderContext
RenderContextJavascriptModulesPlugin

Returns

Source

renderRuntimeModules()

static renderRuntimeModules(runtimeModules, renderContext): Source
Defined in: webpack/types.d.ts:18632

Parameters

runtimeModules
RuntimeModule[]
renderContext
RenderContextJavascriptModulesPlugin & object

Returns

Source

toComment()

static toComment(str): string
Defined in: webpack/types.d.ts:18617

Parameters

str
string

Returns

string

toIdentifier()

static toIdentifier(str): string
Defined in: webpack/types.d.ts:18616

Parameters

str
string

Returns

string

toNormalComment()

static toNormalComment(str): string
Defined in: webpack/types.d.ts:18618

Parameters

str
string

Returns

string

toPath()

static toPath(str): string
Defined in: webpack/types.d.ts:18619

Parameters

str
string

Returns

string