diff --git a/packages/fresh/deno.json b/packages/fresh/deno.json index fdeda5f2..bd43a6d6 100644 --- a/packages/fresh/deno.json +++ b/packages/fresh/deno.json @@ -5,7 +5,7 @@ "exports": { ".": "./src/mod.ts", "./runtime": "./src/runtime/shared.ts", - "./runtime-client": "./src/runtime/client/mod.tsx", + "./runtime-client": "./src/runtime/client/mod.ts", "./dev": "./src/dev/mod.ts", "./compat": "./src/compat.ts", "./internal": "./src/internals.ts", diff --git a/packages/fresh/src/dev/builder.ts b/packages/fresh/src/dev/builder.ts index ad45b1b6..1495e8a6 100644 --- a/packages/fresh/src/dev/builder.ts +++ b/packages/fresh/src/dev/builder.ts @@ -297,7 +297,7 @@ export class Builder { const runtimePath = dev ? "../runtime/client/dev.ts" - : "../runtime/client/mod.tsx"; + : "../runtime/client/mod.ts"; const entryPoints: Record = { "fresh-runtime": new URL(runtimePath, import.meta.url).href, diff --git a/packages/fresh/src/dev/file_transformer.ts b/packages/fresh/src/dev/file_transformer.ts index d4a93f14..f16f6ba4 100644 --- a/packages/fresh/src/dev/file_transformer.ts +++ b/packages/fresh/src/dev/file_transformer.ts @@ -1,7 +1,7 @@ import { globToRegExp, isGlob } from "@std/path"; import type { FsAdapter } from "../fs.ts"; import { BUILD_ID } from "@fresh/build-id"; -import { assetInternal } from "../runtime/shared_internal.tsx"; +import { assetInternal } from "../runtime/shared_internal.ts"; export type TransformMode = "development" | "production"; diff --git a/packages/fresh/src/runtime/client/dev.ts b/packages/fresh/src/runtime/client/dev.ts index f0a5369c..8f993518 100644 --- a/packages/fresh/src/runtime/client/dev.ts +++ b/packages/fresh/src/runtime/client/dev.ts @@ -1,5 +1,5 @@ import "preact/debug"; -export * from "./mod.tsx"; +export * from "./mod.ts"; import { IS_BROWSER } from "../shared.ts"; let ws: WebSocket; diff --git a/packages/fresh/src/runtime/client/mod.tsx b/packages/fresh/src/runtime/client/mod.ts similarity index 100% rename from packages/fresh/src/runtime/client/mod.tsx rename to packages/fresh/src/runtime/client/mod.ts diff --git a/packages/fresh/src/runtime/client/partials.ts b/packages/fresh/src/runtime/client/partials.ts index 26af1878..f6569425 100644 --- a/packages/fresh/src/runtime/client/partials.ts +++ b/packages/fresh/src/runtime/client/partials.ts @@ -6,7 +6,7 @@ import { matchesUrl, PartialMode, UrlMatchKind, -} from "../shared_internal.tsx"; +} from "../shared_internal.ts"; import { ACTIVE_PARTIALS, copyOldChildren, diff --git a/packages/fresh/src/runtime/client/preact_hooks_client.ts b/packages/fresh/src/runtime/client/preact_hooks_client.ts index 22bf351e..f8d114c9 100644 --- a/packages/fresh/src/runtime/client/preact_hooks_client.ts +++ b/packages/fresh/src/runtime/client/preact_hooks_client.ts @@ -4,7 +4,7 @@ import { CLIENT_NAV_ATTR, type InternalPreactOptions, OptionsType, -} from "../shared_internal.tsx"; +} from "../shared_internal.ts"; import { BUILD_ID } from "@fresh/build-id"; import { renderToString } from "preact-render-to-string"; import { useEffect } from "preact/hooks"; diff --git a/packages/fresh/src/runtime/client/reviver.ts b/packages/fresh/src/runtime/client/reviver.ts index fd1839e6..e852cd19 100644 --- a/packages/fresh/src/runtime/client/reviver.ts +++ b/packages/fresh/src/runtime/client/reviver.ts @@ -9,7 +9,7 @@ import { } from "preact"; import { type CustomParser, parse } from "../../jsonify/parse.ts"; import { computed, signal } from "@preact/signals"; -import { DATA_FRESH_KEY, PartialMode } from "../shared_internal.tsx"; +import { DATA_FRESH_KEY, PartialMode } from "../shared_internal.ts"; const enum RootKind { Island, diff --git a/packages/fresh/src/runtime/server/preact_hooks.tsx b/packages/fresh/src/runtime/server/preact_hooks.tsx index 6d8a3186..f23569a3 100644 --- a/packages/fresh/src/runtime/server/preact_hooks.tsx +++ b/packages/fresh/src/runtime/server/preact_hooks.tsx @@ -22,7 +22,7 @@ import { OptionsType, PartialMode, setActiveUrl, -} from "../shared_internal.tsx"; +} from "../shared_internal.ts"; import type { BuildCache } from "../../build_cache.ts"; import { BUILD_ID } from "@fresh/build-id"; import { diff --git a/packages/fresh/src/runtime/shared.ts b/packages/fresh/src/runtime/shared.ts index 28cee339..3412a034 100644 --- a/packages/fresh/src/runtime/shared.ts +++ b/packages/fresh/src/runtime/shared.ts @@ -1,6 +1,6 @@ import type { ComponentChildren, VNode } from "preact"; import { BUILD_ID } from "@fresh/build-id"; -import { assetInternal, assetSrcSetInternal } from "./shared_internal.tsx"; +import { assetInternal, assetSrcSetInternal } from "./shared_internal.ts"; /** * Returns true when the current runtime is the browser and false otherwise. This is used for guard runtime-dependent code. diff --git a/packages/fresh/src/runtime/shared_internal.tsx b/packages/fresh/src/runtime/shared_internal.ts similarity index 100% rename from packages/fresh/src/runtime/shared_internal.tsx rename to packages/fresh/src/runtime/shared_internal.ts