diff --git a/packages/astro/src/runtime/server/render/page.ts b/packages/astro/src/runtime/server/render/page.ts index ce2d165a7..162c5a603 100644 --- a/packages/astro/src/runtime/server/render/page.ts +++ b/packages/astro/src/runtime/server/render/page.ts @@ -79,7 +79,7 @@ export async function renderPage( result._metadata.headInTree = result.componentMetadata.get((componentFactory as any).moduleId)?.containsHead ?? false; const pageProps: Record = { ...(props ?? {}), 'server:root': true }; - + let output: ComponentIterable; let head = ''; try { diff --git a/packages/astro/test/fixtures/minification-html/src/pages/aside.astro b/packages/astro/test/fixtures/minification-html/src/pages/aside.astro new file mode 100644 index 000000000..3a388c276 --- /dev/null +++ b/packages/astro/test/fixtures/minification-html/src/pages/aside.astro @@ -0,0 +1,3 @@ +--- +--- +
2
diff --git a/packages/astro/test/fixtures/minification-html/src/pages/index.astro b/packages/astro/test/fixtures/minification-html/src/pages/index.astro index ffcc23393..8feb4e2e0 100644 --- a/packages/astro/test/fixtures/minification-html/src/pages/index.astro +++ b/packages/astro/test/fixtures/minification-html/src/pages/index.astro @@ -1,14 +1,21 @@ --- - +import Aside from './aside.astro' +import Page from './page.astro' --- minimum html + -
-
+