From da00425a5f6c539ba9dd3d4abed3486678dc6a54 Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Fri, 22 Sep 2023 15:39:27 +0800 Subject: [PATCH] Revert "fix: islands are not being rendered correctly (#8580)" (#8624) This reverts commit 8d361169b8e487933d671ce347f0ce74922c80cc. --- packages/astro/src/runtime/server/scripts.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/astro/src/runtime/server/scripts.ts b/packages/astro/src/runtime/server/scripts.ts index 791be32018..47cd122f1c 100644 --- a/packages/astro/src/runtime/server/scripts.ts +++ b/packages/astro/src/runtime/server/scripts.ts @@ -1,7 +1,7 @@ import type { SSRResult } from '../../@types/astro.js'; import islandScript from './astro-island.prebuilt.js'; -const ISLAND_STYLES = ``; +const ISLAND_STYLES = ``; export function determineIfNeedsHydrationScript(result: SSRResult): boolean { if (result._metadata.hasHydrationScript) { @@ -36,12 +36,12 @@ export function getPrescripts(result: SSRResult, type: PrescriptType, directive: // deps to be loaded immediately. switch (type) { case 'both': - return `${ISLAND_STYLES}`; case 'directive': - return ``; + return ``; } return ''; }