mirror of
https://github.com/denoland/deno.git
synced 2025-07-22 20:55:08 +00:00
Fix compile and bundle api types (#3703)
This commit is contained in:
parent
aedf8721cf
commit
35eb79610f
3 changed files with 7 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue