Skip to content

Commit 90e90c4

Browse files
fix css attribute HMR failure (#88)
1 parent 7e2bcc8 commit 90e90c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/output/Preview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ async function updatePreview() {
229229
previewOptions?.bodyHTML || ''
230230
}\``),
231231
...modules,
232-
`document.getElementById('__sfc-styles').innerHTML = window.__css__`
232+
`setTimeout(()=> document.getElementById('__sfc-styles').innerHTML = window.__css__,1)`,
233233
]
234234
235235
// if main file is a vue file, mount it.

0 commit comments

Comments
 (0)