Skip to content

Commit

Permalink
Use the file: base trick for file paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jun 10, 2024
1 parent bdf2f34 commit 9d93d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Util/Require.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async function dynamicImportAbsolutePath(absolutePath, type, returnRaw = false)

let urlPath;
try {
let u = new URL(`file:${absolutePath}`);
let u = new URL(absolutePath, "file:");

// Bust the import cache if this is the last modified file
if (lastModifiedPaths.has(absolutePath)) {
Expand Down

0 comments on commit 9d93d72

Please sign in to comment.