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])) {