Skip to content

Commit 68afebe

Browse files
julien-deramondmdo
authored andcommitted
Docs: Use ESM Popper CDN reference in 'Using Boottrap as a module'
1 parent 3e3938f commit 68afebe

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

config.yml

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ params:
8282
js_bundle_hash: "sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
8383
popper: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"
8484
popper_hash: "sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3"
85+
popper_esm: "https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/esm/popper.min.js"
8586

8687
anchors:
8788
min: 2

site/content/docs/5.3/getting-started/javascript.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ To fix this, you can use an `importmap` to resolve the arbitrary module names to
7171
<script type="importmap">
7272
{
7373
"imports": {
74-
"@popperjs/core": "{{< param "cdn.popper" >}}",
74+
"@popperjs/core": "{{< param "cdn.popper_esm" >}}",
7575
"bootstrap": "https://cdn.jsdelivr.net/npm/bootstrap@{{< param "current_version" >}}/dist/js/bootstrap.esm.min.js"
7676
}
7777
}

0 commit comments

Comments
 (0)