Skip to content

Commit

Permalink
fix: disable allowImportingTsExtensions and unset noEmit
Browse files Browse the repository at this point in the history
More detailed explanations at <#10 (comment)>
  • Loading branch information
haoqunjiang committed Apr 24, 2023
1 parent c12a7d2 commit fcc1f98
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
// So here we enable some resolution features that are only available in bundlers.
"moduleResolution": "bundler",
"resolveJsonModule": true,
"allowImportingTsExtensions": true,

// `allowImportingTsExtensions` can only be used when `noEmit` or `emitDeclarationOnly` is set.
"noEmit": true,
// 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.

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

0 comments on commit fcc1f98

Please sign in to comment.