Skip to content

Commit 642f5f4

Browse files
authored
chore: fix playground HMR (#12572)
1 parent 5669c7d commit 642f5f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

playgrounds/demo/ssr-dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ polka()
2222
.use(async (req, res) => {
2323
const template = fs.readFileSync(path.resolve(__dirname, 'index.html'), 'utf-8');
2424
const transformed_template = await vite.transformIndexHtml(req.url, template);
25-
const { default: App } = await vite.ssrLoadModule('./src/main.svelte');
25+
const { default: App } = await vite.ssrLoadModule('/src/main.svelte');
2626
const { head, body } = render(App);
2727

2828
const html = transformed_template

0 commit comments

Comments
 (0)