mirror of
https://github.com/swc-project/swc.git
synced 2024-12-25 14:43:33 +03:00
fix(es/modules): Resolve jsc.paths
for export alls (#6170)
This commit is contained in:
parent
c3ba51f48e
commit
82cca674e3
@ -69,4 +69,17 @@ where
|
||||
src.value = new;
|
||||
}
|
||||
}
|
||||
|
||||
fn visit_mut_export_all(&mut self, n: &mut ExportAll) {
|
||||
let mut src = &mut n.src;
|
||||
|
||||
let new = self
|
||||
.resolver
|
||||
.resolve_import(&self.base, &src.value)
|
||||
.with_context(|| format!("failed to resolve import `{}`", src.value))
|
||||
.unwrap();
|
||||
|
||||
src.raw = None;
|
||||
src.value = new;
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,3 @@
|
||||
import "@/a.js";
|
||||
export {} from "@/a.js";
|
||||
export * from "@/a.js";
|
@ -0,0 +1,5 @@
|
||||
{
|
||||
"@/*": [
|
||||
"./src/*"
|
||||
]
|
||||
}
|
@ -0,0 +1,3 @@
|
||||
import "./src/a.js";
|
||||
export { } from "./src/a.js";
|
||||
export * from "./src/a.js";
|
Loading…
Reference in New Issue
Block a user