From 7ea49041be236bbff33c8bc4e0ccf9d6b6da2ea5 Mon Sep 17 00:00:00 2001 From: productdevbook Date: Fri, 24 Jan 2025 14:21:13 +0300 Subject: [PATCH 1/2] feat: add support for TypeScript extension imports in build types --- src/core/build/types.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/build/types.ts b/src/core/build/types.ts index 85ed050aab..c0d9174ae0 100644 --- a/src/core/build/types.ts +++ b/src/core/build/types.ts @@ -217,6 +217,8 @@ declare module "nitro/types" { jsx: "preserve", jsxFactory: "h", jsxFragmentFactory: "Fragment", + allowImportingTsExtensions: true, + rewriteRelativeImportExtensions: true, paths: { "#imports": [ relativeWithDot(tsconfigDir, join(typesDir, "nitro-imports")), From e129f8e0ae2ac593e9022fd7be4d119f4bedc541 Mon Sep 17 00:00:00 2001 From: productdevbook Date: Fri, 24 Jan 2025 14:40:47 +0300 Subject: [PATCH 2/2] feat: remove rewriteRelativeImportExtensions from TypeScript build types --- src/core/build/types.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/core/build/types.ts b/src/core/build/types.ts index c0d9174ae0..a2e3fea78a 100644 --- a/src/core/build/types.ts +++ b/src/core/build/types.ts @@ -218,7 +218,6 @@ declare module "nitro/types" { jsxFactory: "h", jsxFragmentFactory: "Fragment", allowImportingTsExtensions: true, - rewriteRelativeImportExtensions: true, paths: { "#imports": [ relativeWithDot(tsconfigDir, join(typesDir, "nitro-imports")),