File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { readFile, writeFile } from "node:fs/promises";
44import { EOL } from "node:os" ;
55import path from "node:path" ;
66import { finished } from "node:stream/promises" ;
7- import { fileURLToPath } from "node:url" ;
7+ import { fileURLToPath , pathToFileURL } from "node:url" ;
88
99import esbuild from "esbuild" ;
1010import { globby } from "globby" ;
@@ -616,7 +616,7 @@ const externalResolvePlugin = {
616616export 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,
You can’t perform that action at this time.
0 commit comments