new RuntimeTemplate(): RuntimeTemplateRuntimeTemplateCompilationstringstringOutputNormalizedWithDefaultsRequestShortenerasyncModuleFactory({ block, chunkGraph, runtimeRequirements, request }): stringAsyncDependenciesBlockChunkGraphstringstringAsync module factory.
basicFunction(args, body): stringReturns basic function.
blockPromise({ block, message, chunkGraph, runtimeRequirements }): stringAsyncDependenciesBlockChunkGraphstringstringReturns 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(): stringstringReturns empty function code.
exportFromImport({ moduleGraph, chunkGraph, module, request, exportName, originModule, asiSafe, isCall, callContext, defaultInterop, importVar, initFragments, runtime, runtimeRequirements, dependency }): stringbooleanboolean | nullChunkGraphbooleanModuleDependencystringInitFragment<GenerateContext>[]booleanModuleModuleGraphModulestringRuntimeSpecstringExport 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 }): [string, string]ChunkGraphModuleDependencystringModuleModuleGraphModulestringbooleanbooleanReturns the import statement and the compat statement.
isIIFE(): booleanbooleanisModule(): booleanbooleanisNeutralPlatform(): booleanbooleanmissingModule({ request }): stringReturns generated error IIFE.
missingModulePromise({ request }): stringMissing module promise.
missingModuleStatement({ request }): stringMissing module statement.
moduleExports({ module, chunkGraph, request, weak, runtimeRequirements }): stringReturns the expression.
moduleId({ module, chunkGraph, request, weak }): stringChunkGraphModulestringbooleanstringReturns the expression.
moduleNamespace({ module, chunkGraph, request, strict, weak, runtimeRequirements }): stringReturns the expression.
moduleNamespacePromise({ chunkGraph, block, module, request, message, strict, weak, dependency, runtimeRequirements }): stringAsyncDependenciesBlockChunkGraphDependencystringModulestringbooleanbooleanstringModule namespace promise.
moduleRaw({ module, chunkGraph, request, weak, runtimeRequirements }): stringReturns 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 }): stringChunkGraphRuntimeSpecstring | boolean | SortableSet<string>stringRuntime condition expression.
supportNodePrefixForCoreModules(): booleanbooleansupportsArrowFunction(): booleanbooleansupportsAsyncFunction(): booleanbooleansupportsBigIntLiteral(): booleanbooleansupportsConst(): booleanbooleansupportsDestructuring(): booleanbooleansupportsDynamicImport(): booleanbooleansupportsEcmaScriptModuleSyntax(): booleanbooleansupportsForOf(): booleanbooleansupportsMethodShorthand(): booleanbooleansupportsOptionalChaining(): booleanbooleansupportTemplateLiteral(): booleanbooleansyncModuleFactory({ dependency, chunkGraph, runtimeRequirements, request }): stringChunkGraphDependencystringstringSync module factory.
throwMissingModuleErrorBlock({ request }): stringThrow missing module error block.
throwMissingModuleErrorFunction({ request }): stringThrow missing module error function.
weakError({ chunkGraph, module, request, idExpr, type }): stringChunkGraphstringModulestring"promise" | "expression" | "statements"stringReturns the code.