From ca43f6bc7348616a64d22f1f59104a397e52e936 Mon Sep 17 00:00:00 2001 From: Lukas Kleinschmidt Date: Thu, 6 Jul 2023 16:14:11 +0200 Subject: [PATCH] Fixed chunk lookup exception --- Vite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vite.php b/Vite.php index 8aa6eef..9c2f7e6 100644 --- a/Vite.php +++ b/Vite.php @@ -150,7 +150,7 @@ public function __invoke(array|string $entries, string $buildDirectory = null): } foreach ($chunk['imports'] ?? [] as $key) { - $chunk = $this->chunk($manifest, $file); + $chunk = $this->chunk($manifest, $key); $file = $chunk['file']; if (! isset($preloads[$file])) {