Skip to content

Commit 464ca21

Browse files
committed
fix: encode entry path URI in indexHtml setup
1 parent c7c689b commit 464ca21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/slidev/node/setups/indexHtml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ export default async function setupIndexHtml({ mode, entry, clientRoot, userRoot
9292
const baseInDev = mode === 'dev' && base ? base.slice(0, -1) : ''
9393

9494
main = main
95-
.replace('__ENTRY__', baseInDev + toAtFS(join(clientRoot, 'main.ts')))
95+
.replace('__ENTRY__', baseInDev + encodeURI(toAtFS(join(clientRoot, 'main.ts'))))
9696
.replace('<!-- body -->', body)
9797

9898
const html = await transformHtmlTemplate(unhead, main)

0 commit comments

Comments
 (0)