From 1e1fce56a179efd622f2b237ec7f9fb9d0d81c05 Mon Sep 17 00:00:00 2001
From: Parvez <126749+parvez@users.noreply.github.com>
Date: Mon, 23 Dec 2024 13:59:16 +0000
Subject: [PATCH] ensure @imports are inserted at the top of stylesheet

---
 packages/core/src/features/globalCss.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/core/src/features/globalCss.js b/packages/core/src/features/globalCss.js
index eb70ba3e..642dd3c0 100644
--- a/packages/core/src/features/globalCss.js
+++ b/packages/core/src/features/globalCss.js
@@ -24,7 +24,7 @@ export const createGlobalCssFunction = (
 
 				// support @import rules
 				if ('@import' in style) {
-					let importIndex = [].indexOf.call(sheet.sheet.cssRules, sheet.rules.themed.group) - 1
+					let importIndex = 0
 
 					// wrap import in quotes as a convenience
 					for (