diff --git a/deno.json b/deno.json index 9f5a0c2..6ca1e43 100644 --- a/deno.json +++ b/deno.json @@ -14,6 +14,6 @@ "install": "deno install -f -A --unstable --no-lock -n eno server.tsx", "run": "deno run -A --unstable --no-lock server.tsx", "host": "deno run -A --unstable https://deno.land/std@0.181.0/http/file_server.ts", - "complete": "deno task host & cd example && pwd && deno task dev" + "example": "cd example && pwd && deno task dev" } } \ No newline at end of file diff --git a/server.tsx b/server.tsx index 5f73a2f..1e7380a 100644 --- a/server.tsx +++ b/server.tsx @@ -4,6 +4,7 @@ import { debounce } from "https://deno.land/std@0.151.0/async/debounce.ts"; import SSR from "https://esm.sh/v113/preact-render-to-string@6.0.2"; import * as Twind from "https://esm.sh/@twind/core@1.1.3"; import React, {JSX, createElement as h} from "react"; +import * as Iso from "@eno/iso"; const Transpiled = new Map(); const Transpileable =(inFilePath:string):boolean=> @@ -233,9 +234,11 @@ FileListen("${url.pathname}", reloadHandler);`; type = `text/html`; body = ` - +
+