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