From fc77f1bdc56a64a2c6f55c308d6feb7d2628a539 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 28 Mar 2026 09:56:10 +0100 Subject: [PATCH 1/2] fix(init): add @types/babel__core to vite project template New projects using nodeModulesDir: "manual" fail type-checking because Deno can't resolve the @types/babel__core types needed by @fresh/plugin-vite's @babel/core import. Adding it explicitly to the init template fixes the issue. Closes #3605 Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/init/src/init.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/init/src/init.ts b/packages/init/src/init.ts index d362355121a..8554c3da5cc 100644 --- a/packages/init/src/init.ts +++ b/packages/init/src/init.ts @@ -616,6 +616,8 @@ if (Deno.args.includes("build")) { denoJson.imports["@fresh/plugin-vite"] = `jsr:@fresh/plugin-vite@^${vitePluginVersion}`; denoJson.imports["vite"] = "npm:vite@^7.1.3"; + denoJson.imports["@types/babel__core"] = + "npm:@types/babel__core@^7.20.5"; if (useTailwind) { denoJson.imports["tailwindcss"] = From d5eba175b071c46944db1c3be1e2fcf90d0b8cb7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sun, 29 Mar 2026 20:58:35 +0200 Subject: [PATCH 2/2] fmt --- packages/init/src/init.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/init/src/init.ts b/packages/init/src/init.ts index 8554c3da5cc..379ba8d480b 100644 --- a/packages/init/src/init.ts +++ b/packages/init/src/init.ts @@ -616,8 +616,7 @@ if (Deno.args.includes("build")) { denoJson.imports["@fresh/plugin-vite"] = `jsr:@fresh/plugin-vite@^${vitePluginVersion}`; denoJson.imports["vite"] = "npm:vite@^7.1.3"; - denoJson.imports["@types/babel__core"] = - "npm:@types/babel__core@^7.20.5"; + denoJson.imports["@types/babel__core"] = "npm:@types/babel__core@^7.20.5"; if (useTailwind) { denoJson.imports["tailwindcss"] =