Skip to content

Commit b5b3255

Browse files
committed
Bug: Revert workaround for Astro, pending PR merge
1 parent 3ad3010 commit b5b3255

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ export default function (): AstroIntegration {
3636
'head-inline',
3737
readFileSync(new URL('../client-shim.min.js', import.meta.url), { encoding: 'utf-8' })
3838
);
39-
// Inject the hydration support, using 'page' instead of 'before-hydration'
40-
// 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';`);
39+
// Inject the hydration code, before a component is hydrated.
40+
injectScript('before-hydration', `import '@semantic-ui/astro-lit/hydration-support.js';`);
4241
// Add the lit renderer so that Astro can understand lit components.
4342
addRenderer({
4443
name: '@semantic-ui/astro-lit',

0 commit comments

Comments
 (0)