From 4bc95a0ea76fbe40594405c35daf639e0d5cade0 Mon Sep 17 00:00:00 2001 From: fengmk2 Date: Fri, 20 Mar 2026 14:48:14 +0000 Subject: [PATCH] fix(create): use bundler module resolution in monorepo template (#1065) The monorepo template's tsconfig used nodenext module resolution which requires explicit .js extensions on relative imports and breaks Vite config type autocomplete. Switch to module: preserve and moduleResolution: bundler which is correct for Vite projects. Closes #1029 --- packages/cli/templates/monorepo/tsconfig.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/cli/templates/monorepo/tsconfig.json b/packages/cli/templates/monorepo/tsconfig.json index c785f304a8..78ae1bb1f5 100644 --- a/packages/cli/templates/monorepo/tsconfig.json +++ b/packages/cli/templates/monorepo/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "noEmit": true, - "module": "nodenext", - "moduleResolution": "nodenext", + "module": "preserve", + "moduleResolution": "bundler", "allowImportingTsExtensions": true, "esModuleInterop": true }