Skip to content

Commit

Permalink
Revert "fix(es): Remove import statement canonicalization (swc-projec…
Browse files Browse the repository at this point in the history
…t#6716)"

This reverts commit b451fa9.
  • Loading branch information
kdy1 committed Feb 10, 2023
1 parent 29e8a2e commit f74455b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/swc/src/config/mod.rs
Expand Up @@ -1333,6 +1333,10 @@ impl ModuleConfig {
.unwrap_or_else(|_| path.to_path_buf()),
),
_ => base.to_owned(),
FileName::Real(v) if !paths.is_empty() => {
FileName::Real(v.canonicalize().unwrap_or_else(|_| v.to_path_buf()))
}
_ => base.clone(),
};

match config {
Expand Down

0 comments on commit f74455b

Please sign in to comment.