Skip to content

Commit

Permalink
fix: unknown compiler option 'incremental' (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
Songkeys committed Apr 7, 2021
1 parent 6ba34cb commit 416d4ab
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,11 @@ function ncc (
allowSyntheticDefaultImports: true,
module: 'esnext',
outDir: '//',
incremental: false,
...(fullTsconfig &&
fullTsconfig.compilerOptions &&
fullTsconfig.compilerOptions.incremental
? { incremental: false }
: {}),
noEmit: false
}
}
Expand Down

0 comments on commit 416d4ab

Please sign in to comment.