Skip to content

Commit

Permalink
fix(es): Make output field optional (#9033)
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jun 11, 2024
1 parent 93c1642 commit 39654bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/swc_compiler_base/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,9 @@ where
Ok(TransformOutput {
code,
map,
output: Some(serde_json::to_string(&output).context("failed to serilaize output")?),
output: output
.map(|v| serde_json::to_string(&v).context("failed to serilaize output"))
.transpose()?,
})
}

Expand Down

0 comments on commit 39654bf

Please sign in to comment.