Skip to content

Commit 27fa57b

Browse files
committed
feat: enable allowImportingTsExtensions
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.
1 parent 480cd96 commit 27fa57b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,7 @@
1515
// So here we enable some resolution features that are only available in bundlers.
1616
"moduleResolution": "bundler",
1717
"resolveJsonModule": true,
18-
// `allowImportingTsExtensions` can only be used when `noEmit` or `emitDeclarationOnly` is set.
19-
// But `noEmit` may cause problems with solution-style tsconfigs:
20-
// <https://github.com/microsoft/TypeScript/issues/49844>
21-
// And `emitDeclarationOnly` is not always wanted.
22-
// Considering it's not likely to be commonly used in Vue codebases, we don't enable it here.
18+
"allowImportingTsExtensions": true,
2319

2420
// Required in Vue projects
2521
"jsx": "preserve",

0 commit comments

Comments
 (0)