diff --git a/src/output/Preview.vue b/src/output/Preview.vue index d69f08a1..3fad502e 100644 --- a/src/output/Preview.vue +++ b/src/output/Preview.vue @@ -228,10 +228,8 @@ async function updatePreview() { previewOptions?.bodyHTML || '' }\``), ...modules, - `setTimeout(()=> { - document.querySelectorAll('style[css]').forEach(el => el.remove()) - document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => \`\`).join('\\n')) - }, 1)`, + `document.querySelectorAll('style[css]').forEach(el => el.remove()) + document.head.insertAdjacentHTML('beforeend', window.__css__.map(s => \`\`).join('\\n'))`, ] // if main file is a vue file, mount it.