From 416d4ab588535c56f4a75fd2a092f9e81a8a549a Mon Sep 17 00:00:00 2001 From: Songkeys Date: Thu, 8 Apr 2021 06:14:39 +0800 Subject: [PATCH] fix: unknown compiler option 'incremental' (#685) --- src/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index a0f9e0c9..b1bf71e5 100644 --- a/src/index.js +++ b/src/index.js @@ -322,7 +322,11 @@ function ncc ( allowSyntheticDefaultImports: true, module: 'esnext', outDir: '//', - incremental: false, + ...(fullTsconfig && + fullTsconfig.compilerOptions && + fullTsconfig.compilerOptions.incremental + ? { incremental: false } + : {}), noEmit: false } }