Skip to content

Commit ce6c3e2

Browse files
authored
Merge pull request #12930 from CesiumGS/fix-import-path
Follow up for import urls
2 parents e8843b4 + 7862473 commit ce6c3e2

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)