Skip to content

Commit 4bc95a0

Browse files
committed
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
1 parent a58741f commit 4bc95a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/cli/templates/monorepo/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"compilerOptions": {
33
"noEmit": true,
4-
"module": "nodenext",
5-
"moduleResolution": "nodenext",
4+
"module": "preserve",
5+
"moduleResolution": "bundler",
66
"allowImportingTsExtensions": true,
77
"esModuleInterop": true
88
}

0 commit comments

Comments
 (0)