We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d83f8d + cb8e2ff commit af0a87bCopy full SHA for af0a87b
frontend/asset_mapper.rst
@@ -1101,8 +1101,10 @@ loads the ``app.js`` file *and* the ``checkout.js`` file. It's important
1101
to *not* call ``parent()`` in the ``importmap`` block. Each page can only
1102
have *one* importmap, so ``importmap()`` must be called exactly once.
1103
1104
-If, for some reason, you want to execute *only* ``checkout.js``
+If you want to execute *only* ``checkout.js``
1105
and *not* ``app.js``, pass only ``checkout`` to ``importmap()``.
1106
+In this case, still **both** files are added to ``<script type="importmap">``,
1107
+but only ``checkout`` is executed (via ``<script type="module">import 'checkout';</script>``).
1108
1109
Using a Content Security Policy (CSP)
1110
-------------------------------------
0 commit comments