From 38f21c0da8013493aa230653bec11d2ea62e853d Mon Sep 17 00:00:00 2001 From: "alexander.akait" Date: Thu, 28 Nov 2024 23:42:33 +0300 Subject: [PATCH] test: fix --- lib/css/CssLoadingRuntimeModule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/css/CssLoadingRuntimeModule.js b/lib/css/CssLoadingRuntimeModule.js index f9e66c1bb..1ce053d9f 100644 --- a/lib/css/CssLoadingRuntimeModule.js +++ b/lib/css/CssLoadingRuntimeModule.js @@ -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) :" : "",