Skip to content

Commit

Permalink
fix(common): Remove < and > from Display impl of `FileName::Cus…
Browse files Browse the repository at this point in the history
…tom` (#8530)

**Description:**

It caused a problem for next.js
  • Loading branch information
kdy1 authored Jan 21, 2024
1 parent 48c56d1 commit 014a6cd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion crates/swc_bundler/tests/fixture/deno-9591/output/entry.ts

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion crates/swc_common/src/syntax_pos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,10 @@ impl std::fmt::Display for FileName {
FileName::Anon => write!(fmt, "<anon>"),
FileName::ProcMacroSourceCode => write!(fmt, "<proc-macro source code>"),
FileName::Url(ref u) => write!(fmt, "{}", u),
FileName::Custom(ref s) | FileName::Internal(ref s) => write!(fmt, "<{}>", s),
FileName::Custom(ref s) => {
write!(fmt, "{}", s)
}
FileName::Internal(ref s) => write!(fmt, "<{}>", s),
}
}
}
Expand Down

0 comments on commit 014a6cd

Please sign in to comment.