fix: falsy f-* attributes not preserved inside island (#2498)

Fixes https://github.com/denoland/fresh/issues/2359
This commit is contained in:
Marvin Hagemeister
2024-06-05 10:06:53 +02:00
committed by GitHub
parent fba3f2b845
commit 2b88f4bf56
5 changed files with 68 additions and 1 deletions
+2
View File
@@ -25,6 +25,7 @@ import { SelfCounter } from "./fixtures_islands/SelfCounter.tsx";
import { Multiple1, Multiple2 } from "./fixtures_islands/Multiple.tsx";
import { Foo } from "./fixture_island_groups/routes/foo/(_islands)/Foo.tsx";
import { NodeProcess } from "./fixtures_islands/NodeProcess.tsx";
import { FreshAttrs } from "./fixtures_islands/FreshAttrs.tsx";
export function getIsland(pathname: string) {
return path.join(
@@ -378,6 +379,7 @@ export const allIslandApp = new App()
.island(getIsland("PassThrough.tsx"), "PassThrough", PassThrough)
.island(getIsland("SelfCounter.tsx"), "SelfCounter", SelfCounter)
.island(getIsland("NodeProcess.tsx"), "NodeProcess", NodeProcess)
.island(getIsland("FreshAttrs.tsx"), "FreshAttrs", FreshAttrs)
.island(
getIsland("../fixture_island_groups/routes/foo/(_islands)/Foo.tsx"),
"Foo",