Skip to content

Commit bdc2410

Browse files
authored
Merge branch 'main' into fix-issue-5760-declustered-entities
2 parents ad7149d + b04b592 commit bdc2410

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scripts/build.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readFile, writeFile } from "node:fs/promises";
44
import { EOL } from "node:os";
55
import path from "node:path";
66
import { finished } from "node:stream/promises";
7-
import { fileURLToPath } from "node:url";
7+
import { fileURLToPath, pathToFileURL } from "node:url";
88

99
import esbuild from "esbuild";
1010
import { globby } from "globby";
@@ -616,7 +616,7 @@ const externalResolvePlugin = {
616616
export async function getSandcastleConfig() {
617617
const configPath = "packages/sandcastle/sandcastle.config.js";
618618
const configImportPath = path.join(projectRoot, configPath);
619-
const config = await import(configImportPath);
619+
const config = await import(pathToFileURL(configImportPath).href);
620620
const options = config.default;
621621
return {
622622
...options,
@@ -650,7 +650,9 @@ export async function buildSandcastleGallery(includeDevelopment) {
650650
__dirname,
651651
"../packages/sandcastle/scripts/buildGallery.js",
652652
);
653-
const { buildGalleryList } = await import(buildGalleryScriptPath);
653+
const { buildGalleryList } = await import(
654+
pathToFileURL(buildGalleryScriptPath).href
655+
);
654656

655657
await buildGalleryList({
656658
rootDirectory,

0 commit comments

Comments
 (0)