From 4eb9a60bfe2542edb3545c9fca2dc91f7c483de2 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Sat, 10 Sep 2022 09:33:30 +0200 Subject: [PATCH] Preact-TS: Switch to JSX runtime transform --- packages/create-vite/template-preact-ts/src/preact.d.ts | 1 - packages/create-vite/template-preact-ts/tsconfig.json | 5 ++--- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 packages/create-vite/template-preact-ts/src/preact.d.ts diff --git a/packages/create-vite/template-preact-ts/src/preact.d.ts b/packages/create-vite/template-preact-ts/src/preact.d.ts deleted file mode 100644 index ac79d62a49b4ac..00000000000000 --- a/packages/create-vite/template-preact-ts/src/preact.d.ts +++ /dev/null @@ -1 +0,0 @@ -import JSX = preact.JSX diff --git a/packages/create-vite/template-preact-ts/tsconfig.json b/packages/create-vite/template-preact-ts/tsconfig.json index 0a24dec18dd4f8..9c1b1e0aa6f1df 100644 --- a/packages/create-vite/template-preact-ts/tsconfig.json +++ b/packages/create-vite/template-preact-ts/tsconfig.json @@ -14,9 +14,8 @@ "resolveJsonModule": true, "isolatedModules": true, "noEmit": true, - "jsx": "preserve", - "jsxFactory": "h", - "jsxFragmentFactory": "Fragment" + "jsx": "react-jsx", + "jsxImportSource": "preact" }, "include": ["src"], "references": [{ "path": "./tsconfig.node.json" }]