We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3857303 commit 69fa22bCopy full SHA for 69fa22b
1 file changed
src/index.ts
@@ -36,8 +36,9 @@ export default function (): AstroIntegration {
36
'head-inline',
37
readFileSync(new URL('../client-shim.min.js', import.meta.url), { encoding: 'utf-8' })
38
);
39
- // Inject the hydration code, before a component is hydrated.
40
- injectScript('before-hydration', `import '@semantic-ui/astro-lit/hydration-support.js';`);
+ // Inject the hydration support, using 'page' instead of 'before-hydration'
+ // to work around Astro 6 not emitting before-hydration chunks for the client build
41
+ injectScript('page', `import '@semantic-ui/astro-lit/hydration-support.js';`);
42
// Add the lit renderer so that Astro can understand lit components.
43
addRenderer({
44
name: '@semantic-ui/astro-lit',
0 commit comments