From 8c813502223eb0cbfe04f13727b730861020982d Mon Sep 17 00:00:00 2001 From: Tim MacDonald Date: Thu, 9 Jun 2022 17:04:10 +1000 Subject: [PATCH] Updates are now async. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 翠 / green --- playground/hmr/hmr.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playground/hmr/hmr.ts b/playground/hmr/hmr.ts index a986db769f51fe..f2d21b9bc78884 100644 --- a/playground/hmr/hmr.ts +++ b/playground/hmr/hmr.ts @@ -46,8 +46,8 @@ if (import.meta.hot) { (document.querySelector('.global-css') as HTMLLinkElement).href ) - // We don't have a vite:afterUpdate event, but updates are currently - // sync. We need to wait until the tag has been swapped out, which + // We don't have a vite:afterUpdate event. + // We need to wait until the tag has been swapped out, which // includes the time taken to download and parse the new stylesheet. const observer = new MutationObserver((mutations) => { mutations.forEach((mutation) => {