Skip to content

Commit 3b3d3f1

Browse files
committed
Fix(Cross Import): Update path resolution to use __dirname instead of import.meta.url
1 parent fcbb7f3 commit 3b3d3f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cross-import/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default function crossImport(modulePath: string): any {
1717
console.error(error)
1818
console.log('[cross-import] fall back to sucrase runtime transform:', modulePath)
1919
}
20-
return createJiti(import.meta.url, {
20+
return createJiti(__dirname, {
2121
cache: false,
2222
debug: !!process.env.DEBUG,
2323
fsCache: false,

0 commit comments

Comments
 (0)