Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dfc57db

Browse files
[AssetMapper] Put importmap in polyfill so it can be hosted locally easily
1 parent 80f7c9e commit dfc57db

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

frontend/asset_mapper.rst

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,14 +1032,20 @@ you expect are being included in the asset map.
10321032
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10331033

10341034
Configure the polyfill for older browsers. Default is `ES module shim`_. You can pass
1035-
any URL to be included, or ``false`` to disable the polyfill.
1035+
an importmap name to load the polyfill, or ``false`` to disable the polyfill loading.
10361036

10371037
.. code-block:: yaml
10381038
10391039
framework:
10401040
asset_mapper:
10411041
importmap_polyfill: false # disable the shim ...
1042-
# importmap_polyfill: 'https://...' # ... or pass some custom URL
1042+
# importmap_polyfill: 'my_import_map' # ... or pass an importmap name
1043+
1044+
.. versionadded:: 6.4
1045+
1046+
Passing an importmap name in ``importmap_polyfill`` was
1047+
introduced in Symfony 6.4. Prior to this, you could pass ``false``
1048+
or a custom URL to load the polyfill.
10431049

10441050
``framework.asset_mapper.importmap_script_attributes``
10451051
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)