Skip to content

Commit 7862473

Browse files
committed
ensure import path on all systems
1 parent e8843b4 commit 7862473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/sandcastle/scripts/buildGallery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ if (import.meta.url.endsWith(`${pathToFileURL(process.argv[1])}`)) {
299299
let buildGalleryOptions;
300300

301301
try {
302-
const config = await import(configPath);
302+
const config = await import(pathToFileURL(configPath).href);
303303
const { root, publicDir, gallery, sourceUrl } = config.default;
304304

305305
// Paths are specified relative to the config file

0 commit comments

Comments
 (0)