From 18ae557e97f1cef775cd1e75fb1fedee7f1c0cc9 Mon Sep 17 00:00:00 2001
From: Yassine Doghri <yassine@doghri.fr>
Date: Sun, 23 Jan 2022 18:21:59 +0000
Subject: [PATCH] fix: remove defer from js script declaration as it is a
 module

---
 app/Libraries/Vite/Vite.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/Libraries/Vite/Vite.php b/app/Libraries/Vite/Vite.php
index 1cceec4880..a7192eed13 100644
--- a/app/Libraries/Vite/Vite.php
+++ b/app/Libraries/Vite/Vite.php
@@ -120,7 +120,7 @@ class Vite
             CODE_SAMPLE
 ,
             'js' => <<<CODE_SAMPLE
-                    <script type="module" src="{$assetUrl}" defer></script>
+                    <script type="module" src="{$assetUrl}"></script>
                 CODE_SAMPLE
 ,
             default => '',
-- 
GitLab