Skip to content

Commit

Permalink
Since vite-plugin-symfony:4.0.0 (SRI feature) entrypoint item is an a…
Browse files Browse the repository at this point in the history
…rray with 'path' and 'hash' instead of a string
  • Loading branch information
plfort committed Sep 28, 2023
1 parent 0ef2fe9 commit 98148f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Asset/EntrypointsLookup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98148f4

Please sign in to comment.