fix: add astro-static-slot to the list of inert tags in astro css (#7189)

This commit is contained in:
Barthélémy Ledoux 2023-05-24 02:10:10 -05:00 committed by GitHub
parent 55a0439e00
commit 2bda7fb0bc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'astro': patch
---
fix: add astro-static-slot to the list of inert tags in astro css

View file

@ -1,7 +1,7 @@
import type { SSRResult } from '../../@types/astro';
import islandScript from './astro-island.prebuilt.js';
const ISLAND_STYLES = `<style>astro-island,astro-slot{display:contents}</style>`;
const ISLAND_STYLES = `<style>astro-island,astro-slot,astro-static-slot{display:contents}</style>`;
export function determineIfNeedsHydrationScript(result: SSRResult): boolean {
if (result._metadata.hasHydrationScript) {