Skip to content

Commit ae7d3af

Browse files
authored
fix: readSourcesFromFilesystem unicode escape error on windows (#523)
1 parent cf1bc3e commit ae7d3af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prerender.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function readSourcesFromFilesystem(filename) {
7373
if (!import.meta.prerender) {
7474
return null
7575
}
76-
const path = join('${runtimeAssetsPath}', filename)
76+
const path = join(${JSON.stringify(runtimeAssetsPath)}, filename)
7777
const data = await readFile(path, 'utf-8').catch(() => null)
7878
return data ? JSON.parse(data) : null
7979
}

0 commit comments

Comments
 (0)