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