Skip to content

Commit

Permalink
feat: enable allowImportingTsExtensions
Browse files Browse the repository at this point in the history
We've enabled `noEmit` for a while and the constraint on solution-style
tsconfigs were no longer a problem long ago. So let's enable it.
  • Loading branch information
haoqunjiang committed Nov 10, 2024
1 parent 480cd96 commit 27fa57b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,7 @@
// So here we enable some resolution features that are only available in bundlers.
"moduleResolution": "bundler",
"resolveJsonModule": true,
// `allowImportingTsExtensions` can only be used when `noEmit` or `emitDeclarationOnly` is set.
// But `noEmit` may cause problems with solution-style tsconfigs:
// <https://github.com/microsoft/TypeScript/issues/49844>
// And `emitDeclarationOnly` is not always wanted.
// Considering it's not likely to be commonly used in Vue codebases, we don't enable it here.
"allowImportingTsExtensions": true,

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

0 comments on commit 27fa57b

Please sign in to comment.