fix(vite): nested islands not working (#3440)

This PR makes nested islands work. Problem was that only entry files
have the `src` property in the vite manifest. For that we need to ensure
that every island is an entry point.

Fixes https://github.com/denoland/fresh/issues/3439
This commit is contained in:
Marvin Hagemeister
2025-09-15 17:55:44 +02:00
committed by GitHub
parent 3fb3cd9443
commit 399cbc3aa2
10 changed files with 270 additions and 104 deletions
@@ -0,0 +1,15 @@
import { useEffect, useState } from "preact/hooks";
export function IslandNestedInner() {
const [ready, set] = useState(false);
useEffect(() => {
set(true);
}, []);
return (
<div class={ready ? "inner-ready" : ""}>
<p>Inner</p>
</div>
);
}