We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6023935 commit 152f2faCopy full SHA for 152f2fa
src/output/Preview.vue
@@ -196,10 +196,8 @@ async function updatePreview() {
196
197
const codeToEval = [
198
`window.__modules__ = {};window.__css__ = '';` +
199
- `if (window.__app__) window.__app__.unmount();` +
200
- isSSR
201
- ? ``
202
- : `document.body.innerHTML = '<div id="app"></div>'`,
+ `if (window.__app__) window.__app__.unmount();` +
+ (isSSR ? `` : `document.body.innerHTML = '<div id="app"></div>'`),
203
...modules,
204
`document.getElementById('__sfc-styles').innerHTML = window.__css__`
205
]
0 commit comments