From c084c6cb36f47b03012a5a1071e4d4334a9c431e Mon Sep 17 00:00:00 2001 From: Luke Towers Date: Wed, 8 Jan 2025 15:04:53 -0600 Subject: [PATCH] Fix using vite packages when they're ignored from compiling (#1284) --- modules/system/classes/asset/Vite.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/system/classes/asset/Vite.php b/modules/system/classes/asset/Vite.php index f5dabc7057..5ddf14620f 100644 --- a/modules/system/classes/asset/Vite.php +++ b/modules/system/classes/asset/Vite.php @@ -27,7 +27,7 @@ public function __invoke($entrypoints, $package = null) // Normalise the package name $package = strtolower($package); - if (!($compilableAssetPackage = PackageManager::instance()->getPackages('vite')[$package] ?? null)) { + if (!($compilableAssetPackage = PackageManager::instance()->getPackages('vite', true)[$package] ?? null)) { throw new SystemException('Unable to resolve package: ' . $package); }