From 145b650442fa582fe3e75efad885e9ca1e5dec37 Mon Sep 17 00:00:00 2001 From: Benjamin Pasero Date: Tue, 6 Aug 2024 18:23:02 +0200 Subject: [PATCH] esm - reduce diff (#224959) --- src/bootstrap-window.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bootstrap-window.js b/src/bootstrap-window.js index ee06b29d53c4b..a747a7cf5dcdf 100644 --- a/src/bootstrap-window.js +++ b/src/bootstrap-window.js @@ -110,7 +110,7 @@ const isESM = false; // DEV: For each CSS modules that we have we defined an entry in the import map that maps to // DEV: a blob URL that loads the CSS via a dynamic @import-rule. // DEV --------------------------------------------------------------------------------------- - if (configuration.cssModules) { + if (Array.isArray(configuration.cssModules) && configuration.cssModules.length > 0) { performance.mark('code/willAddCssLoader'); const style = document.createElement('style');