-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Open
Description
Symfony version(s) affected
7.0.0
Description
So I am not sure if this is really a bug or if it is intended to work like this, but when using the AssetMapper function importmap() with a given entrypoint, I would expect not to see other entrypoints defined in importmap.php to be part of the compiled <script type="importmap">.
How to reproduce
- Add a few entrypoints in
importmap.php(for examplelogin.js,admin.js,app.js) - Use one of the entrypoints in a twig template, like so:
{% block importmap %}{{ importmap('login') }}{% endblock %} - When looking into the generated source I can see in
<script type="importmap">not only an entry forlogin.jsbut for all entrypoints
Possible Solution
No response
Additional Context
No response
ThomasLandauer, keune and fritz-gerneth