Skip to content

Commit

Permalink
set tsConfig moduleDetection to force
Browse files Browse the repository at this point in the history
  • Loading branch information
wJoenn committed Apr 5, 2024
1 parent 217427e commit 2d239a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 7 additions & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,13 @@ export default defineNuxtConfig({
},
typescript: {
shim: false,
strict: true
strict: true,
tsConfig: {
compilerOptions: {
allowImportingTsExtensions: true,
moduleDetection: "force"
}
}
},
vite: {
css: {
Expand Down
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
// https://nuxt.com/docs/guide/concepts/typescript
"extends": "./.nuxt/tsconfig.json",
"compilerOptions": {
"allowImportingTsExtensions": true
}
"extends": "./.nuxt/tsconfig.json"
}

0 comments on commit 2d239a4

Please sign in to comment.