diff options
Diffstat (limited to 'cli/js/compiler.ts')
-rw-r--r-- | cli/js/compiler.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts index 76a0f7262..c0f9c0a1e 100644 --- a/cli/js/compiler.ts +++ b/cli/js/compiler.ts @@ -240,9 +240,10 @@ self.compilerMain = function compilerMain(): void { emitResult.emitSkipped === false, "Unexpected skip of the emit." ); - const { items } = fromTypeScriptDiagnostic(diagnostics); const result = [ - items && items.length ? items : undefined, + diagnostics.length + ? fromTypeScriptDiagnostic(diagnostics) + : undefined, bundle ? state.emitBundle : state.emitMap ]; postMessage(result); |