diff --git a/src/dev/imports.ts b/src/dev/imports.ts index 8544f562..f80e6dfc 100644 --- a/src/dev/imports.ts +++ b/src/dev/imports.ts @@ -1,5 +1,6 @@ export const RECOMMENDED_PREACT_VERSION = "10.10.6"; export const RECOMMENDED_PREACT_RTS_VERSION = "5.2.3"; +export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.0.2"; export const RECOMMENDED_TWIND_VERSION = "0.16.17"; export function freshImports(imports: Record) { @@ -8,6 +9,10 @@ export function freshImports(imports: Record) { imports["preact/"] = `https://esm.sh/preact@${RECOMMENDED_PREACT_VERSION}/`; imports["preact-render-to-string"] = `https://esm.sh/*preact-render-to-string@${RECOMMENDED_PREACT_RTS_VERSION}/`; + imports["@preact/signals"] = + `https://esm.sh/*@preact/signals@${RECOMMENDED_PREACT_SIGNALS_VERSION}`; + imports["@preact/signals-core"] = + `https://esm.sh/@preact/signals-core@${RECOMMENDED_PREACT_SIGNALS_VERSION}`; } export function twindImports(imports: Record) { diff --git a/www/fresh.gen.ts b/www/fresh.gen.ts index 8e093e88..0e272207 100644 --- a/www/fresh.gen.ts +++ b/www/fresh.gen.ts @@ -10,6 +10,7 @@ import * as $3 from "./routes/gfm.css.ts"; import * as $4 from "./routes/index.tsx"; import * as $5 from "./routes/raw.ts"; import * as $6 from "./routes/showcase.tsx"; +import * as $7 from "./routes/update.tsx"; import * as $$0 from "./islands/CopyArea.tsx"; import * as $$1 from "./islands/Counter.tsx"; import * as $$2 from "./islands/LemonDrop.tsx"; @@ -23,6 +24,7 @@ const manifest = { "./routes/index.tsx": $4, "./routes/raw.ts": $5, "./routes/showcase.tsx": $6, + "./routes/update.tsx": $7, }, islands: { "./islands/CopyArea.tsx": $$0, diff --git a/www/import_map.json b/www/import_map.json index 54b8d1b8..28553305 100644 --- a/www/import_map.json +++ b/www/import_map.json @@ -7,7 +7,9 @@ "preact": "https://esm.sh/preact@10.10.6", "preact/": "https://esm.sh/preact@10.10.6/", - "preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.3", + "preact-render-to-string": "https://esm.sh/*preact-render-to-string@5.2.3/", + "@preact/signals": "https://esm.sh/*@preact/signals@1.0.2", + "@preact/signals-core": "https://esm.sh/@preact/signals-core@1.0.2", "$std/": "https://deno.land/std@0.150.0/" }