chore: fix playground HMR (#12572)

pull/12573/head
Rich Harris 1 year ago committed by GitHub
parent 5669c7de4f
commit 642f5f4df8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save