From 98148f4f46a8323b68bcb17385da84d1e554ca13 Mon Sep 17 00:00:00 2001 From: plfort Date: Thu, 28 Sep 2023 12:06:53 +0200 Subject: [PATCH] Since vite-plugin-symfony:4.0.0 (SRI feature) entrypoint item is an array with 'path' and 'hash' instead of a string --- src/Asset/EntrypointsLookup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Asset/EntrypointsLookup.php b/src/Asset/EntrypointsLookup.php index ec26713..a20ca68 100644 --- a/src/Asset/EntrypointsLookup.php +++ b/src/Asset/EntrypointsLookup.php @@ -118,7 +118,7 @@ public function getLegacyJSFile($entryName, $buildName = null): string $legacyEntryName = $entryInfos['entryPoints'][$entryName]['legacy']; - return $entryInfos['entryPoints'][$legacyEntryName]['js'][0]; + return $entryInfos['entryPoints'][$legacyEntryName]['js'][0]['path']; } private function throwIfEntryIsMissing(string $entryName, string $buildName = null): void