Skip to content

Commit

Permalink
wip: try fileURLToPath
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Mar 1, 2024
1 parent 1a669ea commit 46fd65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/db/src/core/load-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ async function importBundledFile({
const tmpFileUrl = new URL(`db.timestamp-${Date.now()}.mjs`, root);
await writeFile(tmpFileUrl, code);
try {
return await import(/* @vite-ignore */ tmpFileUrl.href);
return await import(/* @vite-ignore */ fileURLToPath(tmpFileUrl));
} finally {
try {
await unlink(tmpFileUrl);
Expand Down

0 comments on commit 46fd65d

Please sign in to comment.