diff options
| author | Julien Déramond <[email protected]> | 2023-02-05 18:05:39 +0100 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2023-02-14 08:46:55 -0800 |
| commit | 68afebe5b5361deb1a220cd2f3f2e12e5c6ffc5e (patch) | |
| tree | 049e110fd8407e65dbf27b8dd0f0640dbbd54711 | |
| parent | 3e3938f036c9feabf7a64548f94cb99dde44b18c (diff) | |
| download | bootstrap-68afebe5b5361deb1a220cd2f3f2e12e5c6ffc5e.tar.xz bootstrap-68afebe5b5361deb1a220cd2f3f2e12e5c6ffc5e.zip | |
Docs: Use ESM Popper CDN reference in 'Using Boottrap as a module'
| -rw-r--r-- | config.yml | 1 | ||||
| -rw-r--r-- | site/content/docs/5.3/getting-started/javascript.md | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/config.yml b/config.yml index b217aaa53..983564606 100644 --- a/config.yml +++ b/config.yml @@ -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 diff --git a/site/content/docs/5.3/getting-started/javascript.md b/site/content/docs/5.3/getting-started/javascript.md index 80eed9ce1..f80e6f26a 100644 --- a/site/content/docs/5.3/getting-started/javascript.md +++ b/site/content/docs/5.3/getting-started/javascript.md @@ -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" } } |
