diff --git a/src/plugin/generateHtml.ts b/src/plugin/generateHtml.ts index 6e20b48..f940014 100644 --- a/src/plugin/generateHtml.ts +++ b/src/plugin/generateHtml.ts @@ -81,6 +81,12 @@ export async function generateHtml(template: string, $('body').append(``) } + const teleports = ctx.teleports ?? {} + + if (teleports['#teleports'] !== undefined) { + $('body').append(`
${teleports['#teleports']}
`) + } + const resolvedTags = await head.resolveTags() let tags = ['title', 'meta', 'link', 'base', 'style', 'script', 'noscript']