From 08df98cc4e5c7cc49db9f2ea936e9f8e0c4a7cdf Mon Sep 17 00:00:00 2001 From: Enzo Innocenzi Date: Sun, 22 Dec 2024 06:30:33 -0800 Subject: [PATCH] fix(vite): fall back to global entrypoints if supplied ones are empty (#870) --- src/Tempest/Vite/src/Vite.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Tempest/Vite/src/Vite.php b/src/Tempest/Vite/src/Vite.php index c738c5479..9a921dc8a 100644 --- a/src/Tempest/Vite/src/Vite.php +++ b/src/Tempest/Vite/src/Vite.php @@ -47,7 +47,9 @@ public function setNonce(string $nonce): void */ public function getTags(?array $entrypoints = null): array { - return $this->getTagsResolver()->resolveTags($entrypoints ?? $this->viteConfig->build->entrypoints); + return $this->getTagsResolver()->resolveTags( + array_filter($entrypoints ?: []) ?: array_filter($this->viteConfig->build->entrypoints ?: []), + ); } /**