From 27fa57b67cf10a821aa37d7dd4c6177160284610 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Sun, 10 Nov 2024 14:14:25 +0800 Subject: [PATCH] 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. --- tsconfig.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 1688966..fe2b4f6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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: - // - // 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",