diff --git a/src/Providers/AddonServiceProvider.php b/src/Providers/AddonServiceProvider.php index 125104fab22..11f642dd076 100644 --- a/src/Providers/AddonServiceProvider.php +++ b/src/Providers/AddonServiceProvider.php @@ -116,7 +116,9 @@ abstract class AddonServiceProvider extends ServiceProvider protected $externalScripts = []; /** - * @var list - URLs of Vite entry points + * Vite entry point(s). A string or list is shorthand for the `input` key. + * + * @var string|list|array{input: string|list, publicDirectory?: string, buildDirectory?: string, hotFile?: string}|null */ protected $vite = null; @@ -667,6 +669,9 @@ public function registerScript(string $path) Statamic::script($name, "{$filename}.js?v=".md5($version)); } + /** + * @param string|list|array{input: string|list, publicDirectory?: string, buildDirectory?: string, hotFile?: string} $config + */ public function registerVite($config) { $name = $this->getAddon()->packageName();