From 130ccd949b7898889f53f97e4a5dd54e422dea38 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Mon, 6 May 2024 06:24:50 -0400 Subject: [PATCH] simplify jsx config --- checker.tsx | 4 +--- deno.jsonc | 11 +++-------- things.md | 56 ----------------------------------------------------- 3 files changed, 4 insertions(+), 67 deletions(-) delete mode 100644 things.md diff --git a/checker.tsx b/checker.tsx index 599651f..b52184c 100644 --- a/checker.tsx +++ b/checker.tsx @@ -199,8 +199,7 @@ export async function Check() const optionsRequired = { "lib": ["deno.window", "dom", "dom.iterable", "dom.asynciterable"], - "jsx": "react-jsx", - "jsxImportSource": importMap["react"] + "jsx": "react-jsx" } const optionsCurrent = config.json.compilerOptions as Record || {}; //const compLib:string[] = compOpts.lib as string[] || []; @@ -218,7 +217,6 @@ export async function Check() }); optionsCurrent.jsx = optionsRequired.jsx; - optionsCurrent.jsxImportSource = optionsRequired.jsxImportSource; config.json.compilerOptions = optionsCurrent; await bake(imports); diff --git a/deno.jsonc b/deno.jsonc index c729253..0665f70 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -5,8 +5,8 @@ "react-original": "https://esm.sh/preact@10.20.2/compat", "react/": "https://esm.sh/preact@10.20.2/compat/", "@preact/signals": "https://esm.sh/@preact/signals@1.2.3?deps=preact@10.20.2", - "@twind/core": "https://esm.sh/@twind/core@1.1.3", - + "signals-original": "https://esm.sh/@preact/signals@1.2.3?deps=preact@10.20.2", + "@twind/core": "https://esm.sh/v126/@twind/core@1.1.3/es2022/core.mjs", ">able/": "./", ">able/app.tsx": "./app.tsx" @@ -21,11 +21,6 @@ }, "compilerOptions": { "jsx": "react-jsx", - "jsxImportSource": "https://esm.sh/preact@10.20.2/compat", - "lib": [ - "deno.window", - "dom", - "dom.asynciterable" - ] + "lib": ["deno.window", "dom", "dom.iterable", "dom.asynciterable"] } } \ No newline at end of file diff --git a/things.md b/things.md deleted file mode 100644 index 0ab05fb..0000000 --- a/things.md +++ /dev/null @@ -1,56 +0,0 @@ -# Outpost - -## Deno Deploy -``` -accept: */* -accept-encoding: gzip, br -accept-language: * -cdn-loop: deno;s=deno;d=ah40t9m8n54g -host: bad-goat-66.deno.dev -user-agent: Deno/1.34.1 -``` - -## Deno -``` -accept: */* -accept-encoding: gzip, br -accept-language: * -host: bad-goat-66.deno.dev -user-agent: Deno/1.34.3 -``` - -## Edge -``` -accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7 -accept-encoding: gzip, deflate, br -accept-language: en-US,en;q=0.9 -host: bad-goat-66.deno.dev -referer: https://dash.deno.com/ -sec-ch-ua: "Microsoft Edge";v="117", "Not;A=Brand";v="8", "Chromium";v="117" -sec-ch-ua-mobile: ?0 -sec-ch-ua-platform: "Windows" -sec-fetch-dest: iframe -sec-fetch-mode: navigate -sec-fetch-site: cross-site -upgrade-insecure-requests: 1 -user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Safari/537.36 Edg/117.0.0.0 -``` - -## Firefox -``` -accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8 -accept-encoding: gzip, deflate, br -accept-language: en-US,en;q=0.5 -host: bad-goat-66.deno.dev -sec-fetch-dest: document -sec-fetch-mode: navigate -sec-fetch-site: cross-site -te: trailers -upgrade-insecure-requests: 1 -user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/114.0 -``` - -When a requet comes in: -- if its for a transpile-able document: - - if its a request from deno: - - \ No newline at end of file