From 78624732257fe81af2cc1e8773f2bcc383d1282f Mon Sep 17 00:00:00 2001 From: jjspace <8007967+jjspace@users.noreply.github.com> Date: Fri, 26 Sep 2025 12:45:11 -0400 Subject: [PATCH] ensure import path on all systems --- packages/sandcastle/scripts/buildGallery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/sandcastle/scripts/buildGallery.js b/packages/sandcastle/scripts/buildGallery.js index df82a718381d..9d6d61af0dcd 100644 --- a/packages/sandcastle/scripts/buildGallery.js +++ b/packages/sandcastle/scripts/buildGallery.js @@ -299,7 +299,7 @@ if (import.meta.url.endsWith(`${pathToFileURL(process.argv[1])}`)) { let buildGalleryOptions; try { - const config = await import(configPath); + const config = await import(pathToFileURL(configPath).href); const { root, publicDir, gallery, sourceUrl } = config.default; // Paths are specified relative to the config file