feat: install @preact/signals by default (#710)
This commit is contained in:
@@ -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<string, string>) {
|
||||
@@ -8,6 +9,10 @@ export function freshImports(imports: Record<string, string>) {
|
||||
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<string, string>) {
|
||||
|
||||
@@ -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,
|
||||
|
||||
+3
-1
@@ -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/"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user