chore: rename non-jsx files .tsx -> .ts (#3285)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import "preact/debug";
|
||||
export * from "./mod.tsx";
|
||||
export * from "./mod.ts";
|
||||
import { IS_BROWSER } from "../shared.ts";
|
||||
|
||||
let ws: WebSocket;
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
matchesUrl,
|
||||
PartialMode,
|
||||
UrlMatchKind,
|
||||
} from "../shared_internal.tsx";
|
||||
} from "../shared_internal.ts";
|
||||
import {
|
||||
ACTIVE_PARTIALS,
|
||||
copyOldChildren,
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user