Skip to content

Commit

Permalink
feat: set moduleDetection to force
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Nov 10, 2024
1 parent 27fa57b commit 6355fab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,
// Even files without `import` or `export` are treated as modules.
// It helps to avoid mysterious errors such as `Cannot redeclare block-scoped variable 'name`.
// https://www.totaltypescript.com/cannot-redeclare-block-scoped-variable#solution-3-your-module-isnt-a-module
"moduleDetection": "force",

// Required in Vue projects
"jsx": "preserve",
Expand Down

0 comments on commit 6355fab

Please sign in to comment.