Skip to content

Commit 2fcefac

Browse files
committed
make sure imports are strings
1 parent 4aab565 commit 2fcefac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/build.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ const externalResolvePlugin = {
664664
export async function getSandcastleConfig() {
665665
const configPath = "packages/sandcastle/sandcastle.config.js";
666666
const configImportPath = path.join(projectRoot, configPath);
667-
const config = await import(pathToFileURL(configImportPath));
667+
const config = await import(pathToFileURL(configImportPath).href);
668668
const options = config.default;
669669
return {
670670
...options,
@@ -699,7 +699,7 @@ export async function buildSandcastleGallery(includeDevelopment) {
699699
"../packages/sandcastle/scripts/buildGallery.js",
700700
);
701701
const { buildGalleryList } = await import(
702-
pathToFileURL(buildGalleryScriptPath)
702+
pathToFileURL(buildGalleryScriptPath).href
703703
);
704704

705705
await buildGalleryList({

0 commit comments

Comments
 (0)