From a36cdc13c0c65afd57b6b0ed2e6f4078ecd34b0b Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Wed, 5 Apr 2023 21:05:22 -0400 Subject: [PATCH] serve iso correctly this reverts the prev commits woes --- deno.json | 5 +++-- server.tsx | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/deno.json b/deno.json index 3a96ad8..9f5a0c2 100644 --- a/deno.json +++ b/deno.json @@ -12,7 +12,8 @@ "tasks": { "install": "deno install -f -A --unstable --no-lock -n eno server.tsx", - "run": "deno run -A --unstable --no-lock server.tsx 4507", - "complete": "deno task run & cd example && pwd && deno task dev" + "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" } } \ No newline at end of file diff --git a/server.tsx b/server.tsx index d5a1496..5f73a2f 100644 --- a/server.tsx +++ b/server.tsx @@ -116,6 +116,15 @@ try console.log(`"imports" configuration does not alias an entry-point component with "@eno/app"`); } + const importIso = ImportObject.imports["@eno/iso"]; + if(importIso) + { + ImportObject.imports["@eno/iso"] = `./${LibPath}/iso.tsx`; + } + else + { + + } } else {