Skip to content

Commit

Permalink
Fix(Cross Import): Update path resolution to use __dirname instead of…
Browse files Browse the repository at this point in the history
… import.meta.url
  • Loading branch information
1aron committed Dec 19, 2024
1 parent fcbb7f3 commit 3b3d3f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cross-import/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default function crossImport(modulePath: string): any {
console.error(error)
console.log('[cross-import] fall back to sucrase runtime transform:', modulePath)
}
return createJiti(import.meta.url, {
return createJiti(__dirname, {
cache: false,
debug: !!process.env.DEBUG,
fsCache: false,
Expand Down

0 comments on commit 3b3d3f1

Please sign in to comment.