From 0ceab6b8a981d2f80d05748a7536f1940bda508d Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Sat, 8 Jun 2024 08:07:18 +0200 Subject: [PATCH] feat: init projects with jsx precompile (#2506) --- init/src/init.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/init/src/init.ts b/init/src/init.ts index 0bc33f69..c13ac9a7 100644 --- a/init/src/init.ts +++ b/init/src/init.ts @@ -522,8 +522,16 @@ if (Deno.args.includes("build")) { } as Record, compilerOptions: { lib: ["dom", "dom.asynciterable", "deno.ns"], - jsx: "react-jsx", + jsx: "precompile", jsxImportSource: "preact", + jsxPrecompileSkipElements: [ + "a", + "img", + "source", + "body", + "html", + "head", + ], }, };