fix: add astro-static-slot to the list of inert tags in astro css (#7189)
This commit is contained in:
parent
55a0439e00
commit
2bda7fb0bc
2 changed files with 6 additions and 1 deletions
5
.changeset/static-slot-css.md
Normal file
5
.changeset/static-slot-css.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
fix: add astro-static-slot to the list of inert tags in astro css
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue