Skip to content

vue-template.ts#

View Markdown

Source

3 documented symbols. Read the signatures first, then expand each item for parameters, return types, and examples.

3 symbols 3 functions 4 parameters 3 returns

Reference#

fncreateVueCompilerPlugin(styles: string[]): import("rolldown").PluginCreates a rolldown plugin that compiles Vue SFCs using @vue/compiler-sfc.

Creates a rolldown plugin that compiles Vue SFCs using @vue/compiler-sfc.

Signature

function createVueCompilerPlugin(styles: string[]): import("rolldown").Plugin

View source

Parameters

  • styles string[]

Returns

import("rolldown").Plugin
fngetVizejsPlugin(): Promise<import("rolldown").Plugin[]>Loads @vizejs/vite-plugin as a rolldown plugin for Vue SFC compilation.

Loads @vizejs/vite-plugin as a rolldown plugin for Vue SFC compilation.

Signature

async function getVizejsPlugin(): Promise<import("rolldown").Plugin[]>

View source

Returns

Promise<import("rolldown").Plugin[]>
fnresolveVueTemplate(templatePath: string, options: ResolvedOgImageOptions, root: string): Promise<OgImageTemplateFn>Resolves a Vue SFC template via SSR. Compiles the SFC with @vue/compiler-sfc (o…

Resolves a Vue SFC template via SSR.

Compiles the SFC with @vue/compiler-sfc (or @vizejs/vite-plugin), bundles with rolldown, then wraps with createSSRApp + renderToString.

Signature

export async function resolveVueTemplate(templatePath: string, options: ResolvedOgImageOptions, root: string): Promise<OgImageTemplateFn>

View source

Parameters

Returns

Promise<OgImageTemplateFn>