File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1081,8 +1081,10 @@ loads the ``app.js`` file *and* the ``checkout.js`` file. It's important
1081
1081
to *not * call ``parent() `` in the ``importmap `` block. Each page can only
1082
1082
have *one * importmap, so ``importmap() `` must be called exactly once.
1083
1083
1084
- If, for some reason, you want to execute *only * ``checkout.js ``
1084
+ If you want to execute *only * ``checkout.js ``
1085
1085
and *not * ``app.js ``, pass only ``checkout `` to ``importmap() ``.
1086
+ In this case, still **both ** files are added to ``<script type="importmap"> ``,
1087
+ but only ``checkout `` is executed (via ``<script type="module">import 'checkout';</script> ``).
1086
1088
1087
1089
Using a Content Security Policy (CSP)
1088
1090
-------------------------------------
You can’t perform that action at this time.
0 commit comments