File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -289,7 +289,8 @@ Preloading and Initializing "app.js"
289
289
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
290
290
291
291
In addition to the importmap, the ``{{ importmap() }} `` Twig function also renders
292
- an `ES module shim `_ and a few other things, like a set of "preloads":
292
+ an `ES module shim `_ (see the :ref: `config-importmap-polyfill <polyfill config >`) and
293
+ a few other things, like a set of "preloads":
293
294
294
295
.. code-block :: html
295
296
@@ -1027,6 +1028,21 @@ This is a list of glob patterns that will be excluded from the asset map:
1027
1028
You can use the ``debug:asset-map `` command to double-check that the files
1028
1029
you expect are being included in the asset map.
1029
1030
1031
+ .. _config-importmap-polyfill :
1032
+
1033
+ ``framework.asset_mapper.importmap_polyfill ``
1034
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1035
+
1036
+ Configure the polyfill for older browsers. Default is `ES module shim `_. You can pass
1037
+ any URL to be included, or ``false `` to disable the polyfill.
1038
+
1039
+ .. code-block :: yaml
1040
+
1041
+ framework :
1042
+ asset_mapper :
1043
+ importmap_polyfill : false # disable the shim ...
1044
+ # importmap_polyfill: 'https://...' # ... or pass some custom URL
1045
+
1030
1046
``framework.asset_mapper.importmap_script_attributes ``
1031
1047
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1032
1048
You can’t perform that action at this time.
0 commit comments