Skip to content

Commit 8b938b6

Browse files
Update asset_mapper.rst
1 parent 25cd7ad commit 8b938b6

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
@@ -1084,7 +1084,7 @@ have *one* importmap, so ``importmap()`` must be called exactly once.
10841084
If you want to execute *only* ``checkout.js``
10851085
and *not* ``app.js``, pass only ``checkout`` to ``importmap()``.
10861086
In this case, still **both** files are added to ``<script type="importmap">``,
1087-
but only ``checkout.js`` is executed (via ``<link rel="modulepreload">``).
1087+
but only ``checkout`` is executed (via ``<script type="module">import 'checkout';</script>``).
10881088

10891089
Using a Content Security Policy (CSP)
10901090
-------------------------------------

0 commit comments

Comments
 (0)