summaryrefslogtreecommitdiff
path: root/cli/js/compiler.ts
diff options
context:
space:
mode:
Diffstat (limited to 'cli/js/compiler.ts')
-rw-r--r--cli/js/compiler.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/cli/js/compiler.ts b/cli/js/compiler.ts
index f003d7d0b..bf0287efe 100644
--- a/cli/js/compiler.ts
+++ b/cli/js/compiler.ts
@@ -255,7 +255,9 @@ async function tsCompilerOnMessage({
assert(emitResult.emitSkipped === false, "Unexpected skip of the emit.");
const result = [
- diagnostics.length ? fromTypeScriptDiagnostic(diagnostics) : undefined,
+ diagnostics.length
+ ? fromTypeScriptDiagnostic(diagnostics).items
+ : undefined,
bundle ? state.emitBundle : state.emitMap
];
globalThis.postMessage(result);