Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Jun 11, 2024
1 parent fc793e8 commit 724e0fe
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 724e0fe

Please sign in to comment.