From b4ea52063325b335519a03e0bae4a9faf670ac7b Mon Sep 17 00:00:00 2001 From: johnsoncodehk Date: Tue, 18 Oct 2022 06:25:25 +0800 Subject: [PATCH] feat(vue-tsc): throw error for `noEmitOnError` close #1669 --- vue-language-tools/vue-tsc/src/proxy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vue-language-tools/vue-tsc/src/proxy.ts b/vue-language-tools/vue-tsc/src/proxy.ts index 8ac159bdb..94de4d17d 100644 --- a/vue-language-tools/vue-tsc/src/proxy.ts +++ b/vue-language-tools/vue-tsc/src/proxy.ts @@ -13,6 +13,9 @@ export function createProgramProxy( if (!options.options.noEmit && !options.options.emitDeclarationOnly) return doThrow('js emit is not support'); + if (!options.options.noEmit && options.options.noEmitOnError) + return doThrow('noEmitOnError is not support'); + if (!options.host) return doThrow('!options.host');