From d26a3af539232db043224543d13c1e8ee60010ec Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Tue, 23 Jul 2024 22:42:34 -0400 Subject: [PATCH] chore: fix playground HMR --- 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