Skip to content

Commit ad75077

Browse files
committed
bug #19312 [AssetMapper] Fix importmap code example with multiple entrypoints (smnandre)
This PR was merged into the 6.4 branch. Discussion ---------- [AssetMapper] Fix importmap code example with multiple entrypoints Fix #19311 importmap twig extension method does indeed require an array or a string, and not a variadic : https://github.com/symfony/symfony/blob/6.4/src/Symfony/Bridge/Twig/Extension/ImportMapRuntime.php Commits ------- ebca2e9 Update asset_mapper.rst
2 parents 9bf908e + ebca2e9 commit ad75077

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/asset_mapper.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ both ``app`` and ``checkout``:
10421042
{% block importmap %}
10431043
{# do NOT call parent() #}
10441044
1045-
{{ importmap('app', 'checkout') }}
1045+
{{ importmap(['app', 'checkout']) }}
10461046
{% endblock %}
10471047
10481048
By passing both ``app`` and ``checkout``, the ``importmap()`` function will

0 commit comments

Comments
 (0)