Skip to content

Commit

Permalink
Docs: Use ESM Popper CDN reference in 'Using Boottrap as a module'
Browse files Browse the repository at this point in the history
  • Loading branch information
julien-deramond authored and mdo committed Feb 14, 2023
1 parent 3e3938f commit 68afebe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ params:
js_bundle_hash: "sha384-w76AqPfDkMBDXo30jS1Sgez6pr3x5MlQ1ZAGC+nuZB+EYdgRZgiwxhTBTkF7CXvN"
popper: "https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"
popper_hash: "sha384-oBqDVmMz9ATKxIep9tiCxS/Z9fNfEXiDAYTujMAeBAsjFuCZSmKbSSUnQlmh/jp3"
popper_esm: "https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/esm/popper.min.js"

anchors:
min: 2
Expand Down
2 changes: 1 addition & 1 deletion site/content/docs/5.3/getting-started/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ To fix this, you can use an `importmap` to resolve the arbitrary module names to
<script type="importmap">
{
"imports": {
"@popperjs/core": "{{< param "cdn.popper" >}}",
"@popperjs/core": "{{< param "cdn.popper_esm" >}}",
"bootstrap": "https://cdn.jsdelivr.net/npm/bootstrap@{{< param "current_version" >}}/dist/js/bootstrap.esm.min.js"
}
}
Expand Down

0 comments on commit 68afebe

Please sign in to comment.