new RuntimeTemplate(): RuntimeTemplate<RuntimeTemplate><Compilation><string><string>asyncModuleFactory({ block, chunkGraph, runtimeRequirements, request }): string<AsyncDependenciesBlock><ChunkGraph><string><string>Async module factory.
basicFunction(args, body): stringReturns basic function.
blockPromise({ block, message, chunkGraph, runtimeRequirements }): string<AsyncDependenciesBlock><ChunkGraph><string><string>Returns expression.
comment({ request, chunkName, chunkReason, message, exportName }): stringReturns comment.
concatenation(...args?): stringReturns result expression.
defineEsModuleFlagStatement({ exportsArgument, runtimeRequirements }): stringDefine es module flag statement.
destructureArray(items, value): stringReturns destructure array code.
destructureObject(items, value): stringDestructure object.
emptyFunction(): string<string>Returns empty function code.
exportFromImport({ moduleGraph, chunkGraph, module, request, exportName, originModule, asiSafe, isCall, callContext, defaultInterop, importVar, initFragments, runtime, runtimeRequirements, dependency }): string<boolean><ChunkGraph><boolean><ModuleDependency><string><InitFragment><GenerateContext>
>[] init fragments will be added here<boolean><Module><ModuleGraph><Module><string><RuntimeSpec><string>Export from import.
expressionFunction(expression, args?): stringExpression function.
forEach(variable, array, body): stringReturns for each code.
iife
iife(args, body): stringReturns iIFE code.
importStatement({ update, module, originModule, moduleGraph, chunkGraph, runtimeRequirements, importVar, request, weak, dependency }): Tuple<ChunkGraph><ModuleDependency><string><Module><ModuleGraph><Module><string><boolean><boolean>Returns the import statement and the compat statement.
isIIFE(): boolean<boolean>isModule(): boolean<boolean>isNeutralPlatform(): boolean<boolean>missingModule({ request }): stringReturns generated error IIFE.
missingModulePromise({ request }): stringMissing module promise.
missingModuleStatement({ request }): stringMissing module statement.
moduleExports({ module, chunkGraph, request, weak, runtimeRequirements }): string<ChunkGraph><string><boolean><string>Returns the expression.
moduleId({ module, chunkGraph, request, weak }): string<ChunkGraph><Module><string><boolean><string>Returns the expression.
moduleNamespace({ module, chunkGraph, request, strict, weak, runtimeRequirements }): stringReturns the expression.
moduleNamespacePromise({ chunkGraph, block, module, request, message, strict, weak, dependency, runtimeRequirements }): string<AsyncDependenciesBlock><ChunkGraph><Dependency><string><Module><string><boolean><boolean><string>Module namespace promise.
moduleRaw({ module, chunkGraph, request, weak, runtimeRequirements }): string<ChunkGraph><string><boolean><string>Returns the expression.
renderConst(): "const" | "var"<"const">
|
<"var">Renders return const when it is supported, otherwise var.
renderNodePrefixForCoreModule(mod): stringRenders node prefix for core module.
returningFunction(returnValue, args?): stringReturning function.
runtimeConditionExpression({ chunkGraph, runtime, runtimeCondition, runtimeRequirements }): string<ChunkGraph><RuntimeSpec><string>
> only execute the statement in some runtimes<string>Runtime condition expression.
supportNodePrefixForCoreModules(): boolean<boolean>supportsArrowFunction(): boolean<boolean>supportsAsyncFunction(): boolean<boolean>supportsBigIntLiteral(): boolean<boolean>supportsConst(): boolean<boolean>supportsDestructuring(): boolean<boolean>supportsDynamicImport(): boolean<boolean>supportsEcmaScriptModuleSyntax(): boolean<boolean>supportsForOf(): boolean<boolean>supportsMethodShorthand(): boolean<boolean>supportsOptionalChaining(): boolean<boolean>supportTemplateLiteral(): boolean<boolean>syncModuleFactory({ dependency, chunkGraph, runtimeRequirements, request }): string<ChunkGraph><Dependency><string><string>Sync module factory.
throwMissingModuleErrorBlock({ request }): stringThrow missing module error block.
throwMissingModuleErrorFunction({ request }): stringThrow missing module error function.
weakError({ chunkGraph, module, request, idExpr, type }): string<ChunkGraph><string><Module><string><"promise">
|
<"expression">
|
<"statements">
which kind of code should be returned<string>Returns the code.