chore: explicitly version rts in deps.ts (#1684)
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
export const RECOMMENDED_PREACT_VERSION = "10.18.1";
|
||||
export const RECOMMENDED_PREACT_RTS_VERSION = "6.2.2";
|
||||
export const RECOMMENDED_PREACT_SIGNALS_VERSION = "1.2.1";
|
||||
export const RECOMMENDED_PREACT_SIGNALS_CORE_VERSION = "1.5.0";
|
||||
export const RECOMMENDED_TWIND_VERSION = "0.16.19";
|
||||
@@ -9,8 +8,6 @@ export function freshImports(imports: Record<string, string>) {
|
||||
imports["$fresh/"] = new URL("../../", import.meta.url).href;
|
||||
imports["preact"] = `https://esm.sh/preact@${RECOMMENDED_PREACT_VERSION}`;
|
||||
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"] =
|
||||
|
||||
@@ -20,3 +20,4 @@ export {
|
||||
export { toHashString } from "https://deno.land/std@0.193.0/crypto/to_hash_string.ts";
|
||||
export { escape } from "https://deno.land/std@0.193.0/regexp/escape.ts";
|
||||
export * as JSONC from "https://deno.land/std@0.193.0/jsonc/mod.ts";
|
||||
export { renderToString } from "https://esm.sh/*preact-render-to-string@6.2.2";
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
} from "preact";
|
||||
import { assetHashingHook } from "../../runtime/utils.ts";
|
||||
import { Partial, PartialProps } from "../../runtime/Partial.tsx";
|
||||
import { renderToString } from "preact-render-to-string";
|
||||
import { renderToString } from "../deps.ts";
|
||||
import { RenderState } from "./state.ts";
|
||||
import { Island } from "../types.ts";
|
||||
import {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { RenderState } from "./state.ts";
|
||||
import { setRenderState } from "./preact_hooks.ts";
|
||||
import { renderToString } from "preact-render-to-string";
|
||||
import { renderToString } from "../deps.ts";
|
||||
import {
|
||||
ComponentType,
|
||||
Fragment,
|
||||
|
||||
Reference in New Issue
Block a user