From d06cfe37239ca64b1a9f9178cfbb8eeaf12f7ffb Mon Sep 17 00:00:00 2001 From: gtmnayan <50981692+gtm-nayan@users.noreply.github.com> Date: Sun, 20 Aug 2023 19:02:40 +0545 Subject: [PATCH] chore: render head output in playground (#9123) --- packages/playground/start.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/playground/start.js b/packages/playground/start.js index af37a40e26..ace479ac9f 100644 --- a/packages/playground/start.js +++ b/packages/playground/start.js @@ -69,11 +69,12 @@ const watcher = watch([ async generateBundle(_, bundle) { const result = bundle['entry-server.js']; const mod = (0, eval)(result.code); - const { html } = mod.render(); + const { html, head } = mod.render(); writeFileSync( 'dist/index.html', readFileSync('src/template.html', 'utf-8') + .replace('', head) .replace('', html) .replace('', svelte.VERSION) );