Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Nov 28, 2022
1 parent 73ea6c4 commit e544bc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/swc_error_reporters/src/handler.rs
Expand Up @@ -60,7 +60,7 @@ fn to_miette_reporter(color: ColorConfig) -> GraphicalReportHandler {
match color {
ColorConfig::Auto => {
if cfg!(target_arch = "wasm32") {
return to_miette_reporter(ColorConfig::Always);
return to_miette_reporter(ColorConfig::Always).with_context_lines(3);
}

static ENABLE: Lazy<bool> =
Expand Down

0 comments on commit e544bc1

Please sign in to comment.