test: fix

This commit is contained in:
alexander.akait 2024-11-28 23:42:33 +03:00
parent 193b712734
commit 38f21c0da8
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class CssLoadingRuntimeModule extends RuntimeModule {
"link.onload = onLinkComplete.bind(null, link.onload);"
]),
"} else onLinkComplete(undefined, { type: 'load', target: link });", // We assume any existing stylesheet is render blocking
withFetchPriority
withHmr && withFetchPriority
? 'if (hmr && hmr.getAttribute("fetchpriority")) link.setAttribute("fetchpriority", hmr.getAttribute("fetchpriority"));'
: "",
withHmr ? "hmr ? document.head.insertBefore(link, hmr) :" : "",