05f8e2e3b6
- Create reusable components: auth, api-client, shared-types - ModeTemplate with Hono backend and SvelteKit frontend - Auth store refactored to class-based Svelte 5 pattern - SSR-safe hydrate() pattern for localStorage access - Frontend builds successfully with Svelte 5 runes
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
import "clsx";
|
|
import { n as noop } from "./utils2.js";
|
|
import "@sveltejs/kit/internal/server";
|
|
const is_legacy = noop.toString().includes("$$") || /function \w+\(\) \{\}/.test(noop.toString());
|
|
if (is_legacy) {
|
|
({
|
|
data: {},
|
|
form: null,
|
|
error: null,
|
|
params: {},
|
|
route: { id: null },
|
|
state: {},
|
|
status: -1,
|
|
url: new URL("https://example.com")
|
|
});
|
|
}
|