mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 02:29:04 +03:00
fix(es): Remove import statement canonicalization (#6716)
This commit is contained in:
parent
641e03c997
commit
b451fa9e88
@ -1309,10 +1309,10 @@ impl ModuleConfig {
|
||||
available_features: FeatureFlag,
|
||||
) -> Box<dyn swc_ecma_visit::Fold + 'cmt> {
|
||||
let base = match base {
|
||||
FileName::Real(v) if !paths.is_empty() => {
|
||||
FileName::Real(v.canonicalize().unwrap_or_else(|_| v.to_path_buf()))
|
||||
FileName::Real(path) if !paths.is_empty() && !path.is_absolute() => {
|
||||
FileName::Real(std::env::current_dir().unwrap().join(path))
|
||||
}
|
||||
_ => base.clone(),
|
||||
_ => base.to_owned(),
|
||||
};
|
||||
|
||||
match config {
|
||||
|
Loading…
Reference in New Issue
Block a user