Skip to content

Commit d06cfe3

Browse files
authored
chore: render head output in playground (#9123)
1 parent ba1e678 commit d06cfe3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/playground/start.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,12 @@ const watcher = watch([
6969
async generateBundle(_, bundle) {
7070
const result = bundle['entry-server.js'];
7171
const mod = (0, eval)(result.code);
72-
const { html } = mod.render();
72+
const { html, head } = mod.render();
7373

7474
writeFileSync(
7575
'dist/index.html',
7676
readFileSync('src/template.html', 'utf-8')
77+
.replace('<!--app-head-->', head)
7778
.replace('<!--app-html-->', html)
7879
.replace('<!--app-title-->', svelte.VERSION)
7980
);

0 commit comments

Comments
 (0)