Skip to main content
Version: Next

CompilerPluginRuntime

CompilerPluginRuntime

Signature
class CompilerPluginRuntime {
public readonly name = 'CompilerPluginRuntime';
constructor(plugins: CompilerPlugin[])
getPlugins() => ;
isEmpty() => ;
registerTemplate(name: string, handler: TemplateHandler) => ;
unregisterTemplate(name: string) => ;
getTemplate(name: string) => TemplateHandler | undefined;
getTemplates() => Map<string, TemplateHandler>;
transform(code: string, id: string) => Promise<{ code: string; map: string | null }>;
init() => ;
destroy() => ;
toJSON() => ;
}

name

property

constructor

method
(plugins: CompilerPlugin[]) => CompilerPluginRuntime

getPlugins

method
() =>

isEmpty

method
() =>

registerTemplate

method
(name: string, handler: TemplateHandler) =>

unregisterTemplate

method
(name: string) =>

getTemplate

method
(name: string) => TemplateHandler | undefined

getTemplates

method
() => Map<string, TemplateHandler>

transform

method
(code: string, id: string) => Promise<{ code: string; map: string | null }>

init

method
() =>

destroy

method
() =>

toJSON

method
() =>