From 642f5f4df81535ecff8b2640b2bbe861f2513217 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 23 Jul 2024 22:49:55 -0400 Subject: [PATCH] chore: fix playground HMR (#12572) --- playgrounds/demo/ssr-dev.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playgrounds/demo/ssr-dev.js b/playgrounds/demo/ssr-dev.js index dbaa9a66bd..617b49e652 100644 --- a/playgrounds/demo/ssr-dev.js +++ b/playgrounds/demo/ssr-dev.js @@ -22,7 +22,7 @@ polka() .use(async (req, res) => { const template = fs.readFileSync(path.resolve(__dirname, 'index.html'), 'utf-8'); const transformed_template = await vite.transformIndexHtml(req.url, template); - const { default: App } = await vite.ssrLoadModule('./src/main.svelte'); + const { default: App } = await vite.ssrLoadModule('/src/main.svelte'); const { head, body } = render(App); const html = transformed_template