Skip to content

Commit

Permalink
fixup for revert
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Feb 10, 2023
1 parent 7d8bc6a commit 231548c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crates/swc/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1327,12 +1327,6 @@ impl ModuleConfig {
available_features: FeatureFlag,
) -> Box<dyn swc_ecma_visit::Fold + 'cmt> {
let base = match base {
FileName::Real(path) if !paths.is_empty() && !path.is_absolute() => FileName::Real(
std::env::current_dir()
.map(|v| v.join(path))
.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()))
}
Expand Down

0 comments on commit 231548c

Please sign in to comment.