Skip to content

Commit

Permalink
fix(vite): fall back to global entrypoints if supplied ones are empty (
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi authored Dec 22, 2024
1 parent 4138fac commit 08df98c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Tempest/Vite/src/Vite.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?: []),
);
}

/**
Expand Down

0 comments on commit 08df98c

Please sign in to comment.