From 58db12967a8a27615d86d5646f5d63d0cd39a4e1 Mon Sep 17 00:00:00 2001 From: Triston Date: Wed, 27 Mar 2024 22:20:48 -0500 Subject: [PATCH] change id of root of app so styling workds --- index.html | 2 +- src/main.ts | 2 +- tsconfig.json | 7 ++++--- tsconfig.node.json | 9 +++++++++ 4 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 tsconfig.node.json diff --git a/index.html b/index.html index 30df7c4..dbbeec0 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ -
+
diff --git a/src/main.ts b/src/main.ts index f6ce5cc..76e89ac 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,7 +7,7 @@ document.addEventListener("touchstart", () => { document.body.setAttribute("inputMode", "touch") }) -const root = document.querySelector("#root")! +const root = document.querySelector("#app")! mount(App, { root, maxFrameMs: 16 }) document.body.addEventListener("contextmenu", (e) => { diff --git a/tsconfig.json b/tsconfig.json index 499d307..abfdb7d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,9 +1,9 @@ { "compilerOptions": { - "target": "ES2022", + "target": "ESNext", "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2022", "DOM", "DOM.Iterable"], + "lib": ["ESNext", "DOM", "DOM.Iterable"], "skipLibCheck": true, /* Bundler mode */ @@ -20,5 +20,6 @@ "noFallthroughCasesInSwitch": true, "jsx": "preserve" }, - "include": ["src"] + "include": ["src"], + "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/tsconfig.node.json b/tsconfig.node.json new file mode 100644 index 0000000..9d31e2a --- /dev/null +++ b/tsconfig.node.json @@ -0,0 +1,9 @@ +{ + "compilerOptions": { + "composite": true, + "module": "ESNext", + "moduleResolution": "Node", + "allowSyntheticDefaultImports": true + }, + "include": ["vite.config.ts"] +}