Skip to content

Commit d09922b

Browse files
committed
Don’t throw on error if user allows emit on error.
1 parent 456722b commit d09922b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* eslint-env node */
2-
const path = require('path');
32

43
let TsPreprocessor;
54
try {

lib/typescript-preprocessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class TypeScriptPreprocessor {
4242

4343
const ts = debugTree(
4444
tsc(uncompiledTs, {
45-
throwOnError: true,
45+
throwOnError: !this.config.compilerOptions.noEmitOnError,
4646
annotation: 'Compiled TS files',
4747
include: ['**/*'],
4848
tsconfig: this.config,

0 commit comments

Comments
 (0)