From 18e0e06edb097a545a3495826fbcd4a9258543df Mon Sep 17 00:00:00 2001 From: Bauke Date: Fri, 7 Apr 2023 12:37:37 +0200 Subject: [PATCH] Adjust tsconfig for ES2022 and JSX. --- tsconfig.json | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 1481641..5371e8d 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,20 +1,21 @@ { "compilerOptions": { "esModuleInterop": true, + "jsx": "react-jsx", + "jsxImportSource": "preact", "lib": [ - "ESNext" + "DOM", + "ES2022" ], - "module": "ESNext", + "module": "ES2022", "moduleResolution": "Node", - "noEmit": true, - "outDir": "build", - "skipLibCheck": true, "strict": true, - "target": "ESNext" + "target": "ES2022" }, "include": [ - "source/**/*.ts", - "tests/**/*.ts", + "*.ts", + "source", + "tests", "vite.config.ts" ] }