From fcc1f9879f7b00bd91104f126f25b62682ad0057 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Mon, 24 Apr 2023 12:55:19 +0800 Subject: [PATCH] fix: disable `allowImportingTsExtensions` and unset `noEmit` More detailed explanations at --- tsconfig.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tsconfig.json b/tsconfig.json index 00e0306..d434592 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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: + // + // 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",