Skip to content

Commit 8d86f2d

Browse files
fix: remove manual hydration import from layout
The astro-lit integration's Vite plugin now automatically prepends the hydration support import into Astro <script> modules, ensuring they share the same Vite chunk. No manual import needed.
1 parent 9e62776 commit 8d86f2d

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/layouts/BaseLayout.astro

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ const navItems = components.map(comp => ({
6161
</svg>
6262
</cs-button>
6363

64-
<script>
65-
import '@semantic-ui/astro-lit/hydration-support.js';
66-
import '@cumulus-ui/components';
67-
</script>
64+
<script>import '@cumulus-ui/components';</script>
6865
<script is:inline define:vars={{ navItems, breadcrumbs, activeComponentId }}>
6966
// Side navigation
7067
const sideNav = document.getElementById('side-nav');

0 commit comments

Comments
 (0)