8000 [AssetMapper] Fix bug where dependencies were preloaded even if the parent was not by weaverryan · Pull Request #50356 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[AssetMapper] Fix bug where dependencies were preloaded even if the parent was not #50356

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

weaverryan
Copy link
Member
Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets None
License MIT
Doc PR Still TODO

In importmap.php, if you have preload => false for an assets... but that asset imports another assets, we would always list that imported asset as "preload => true". Basically, when looking at a dependency to determine if it should be preloaded, we need to first look at the parent to see if IT was preloaded.

Cheers!

@weaverryan weaverryan force-pushed the asset-mapper-fix-preload-dependencies branch from be67a07 to 65dd360 Compare May 19, 2023 10:18
@nicolas-grekas nicolas-grekas force-pushed the asset-mapper-fix-preload-dependencies branch from 65dd360 to feb680b Compare May 19, 2023 11:59
@nicolas-grekas
Copy link
Member

Thank you @weaverryan.

@nicolas-grekas nicolas-grekas merged commit 54a3b84 into symfony:6.3 May 19, 2023
@weaverryan weaverryan deleted the asset-mapper-fix-preload-dependencies branch May 19, 2023 17:41
@fabpot fabpot mentioned this pull request May 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0