diff --git a/packages/astro/src/runtime/server/jsx.ts b/packages/astro/src/runtime/server/jsx.ts index 0804ddfe99..05efe2b31b 100644 --- a/packages/astro/src/runtime/server/jsx.ts +++ b/packages/astro/src/runtime/server/jsx.ts @@ -1,19 +1,17 @@ /* eslint-disable no-console */ -import type { ComponentIterable } from './render/component'; import { SSRResult } from '../../@types/astro.js'; import { AstroJSX, isVNode } from '../../jsx-runtime/index.js'; import { escapeHTML, - HTMLBytes, HTMLString, markHTMLString, renderComponent, - RenderInstruction, renderToString, spreadAttributes, voidElementNames, } from './index.js'; import { HTMLParts } from './render/common.js'; +import type { ComponentIterable } from './render/component'; const ClientOnlyPlaceholder = 'astro-client-only'; diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts index 9ad9b98d5b..0b6c90ebeb 100644 --- a/packages/astro/src/runtime/server/render/component.ts +++ b/packages/astro/src/runtime/server/render/component.ts @@ -280,14 +280,14 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr } if (!hydration) { - return (async function *() { + return (async function* () { if (slotInstructions) { yield* slotInstructions; } if (isPage || renderer?.name === 'astro:jsx') { yield html; - } else { + } else { yield markHTMLString(html.replace(/\<\/?astro-slot\>/g, '')); } })(); diff --git a/packages/astro/src/runtime/server/render/page.ts b/packages/astro/src/runtime/server/render/page.ts index 3d7ae8d060..7562c85638 100644 --- a/packages/astro/src/runtime/server/render/page.ts +++ b/packages/astro/src/runtime/server/render/page.ts @@ -1,6 +1,6 @@ import type { SSRResult } from '../../../@types/astro'; -import type { AstroComponentFactory } from './index'; import type { ComponentIterable } from './component'; +import type { AstroComponentFactory } from './index'; import { isHTMLString } from '../escape.js'; import { createResponse } from '../response.js'; @@ -32,7 +32,7 @@ async function iterableToHTMLBytes( if (i === 0) { if (!/\n', result); - if(onDocTypeInjection) { + if (onDocTypeInjection) { await onDocTypeInjection(parts); } }