diff --git a/src/Util/Require.js b/src/Util/Require.js index 7c99e43e3..54b576c7a 100644 --- a/src/Util/Require.js +++ b/src/Util/Require.js @@ -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)) {