Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #52702 [AssetMapper] Fix eager imports are not deduplicated (smna…
…ndre) This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [AssetMapper] Fix eager imports are not deduplicated | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes ? | New feature? | no | Deprecations? | no | Issues | Fix | License | MIT While recursively collecting eager imports, there may be duplicates. ``` app.js L A_1.js L B.js L A_2.js L B.js ``` Removing them early avoid a lot of useless computation afterwards (and eventual side effects) Exemple with the generated app.entrypoint.json of the Symfony UX website - before: 78 entries - after: 53 entries Commits ------- e76b24b [AssetMapper] Fix eager imports are not deduplicated
- Loading branch information
Showing
2 changed files
with
41 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters