Skip to content

Commit 033c60b

Browse files
committed
Enable 'bundler' module resolution
This is a new resolution algorithm in TypeScript that closely matches the one present in popular bundlers like Vite and Webpack. More details: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0-beta/#moduleresolution-bundler microsoft/TypeScript#51669
1 parent d8be96d commit 033c60b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nuxt.config.ts

+6
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,12 @@ export default defineNuxtConfig({
189189
shim: false,
190190
strict: true,
191191
typeCheck: true,
192+
tsConfig: {
193+
compilerOptions: {
194+
moduleResolution: 'bundler',
195+
allowImportingTsExtensions: true,
196+
},
197+
},
192198
},
193199
})
194200

0 commit comments

Comments
 (0)