Skip to content

Commit

Permalink
Add link
Browse files Browse the repository at this point in the history
  • Loading branch information
mdo committed May 20, 2022
1 parent 0b1f575 commit 0c35058
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/content/docs/5.2/getting-started/javascript.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ We provide a version of Bootstrap built as `ESM` (`bootstrap.esm.js` and `bootst
</script>
```

Compared to JS bundlers, using ESM in the browser requires you to use the full path and filename instead of the module name. That's why we use `'bootstrap.esm.min.js'` instead of `'bootstrap'` above. This is further complicated by our Popper dependency, which imports Popper like so:
Compared to JS bundlers, using ESM in the browser requires you to use the full path and filename instead of the module name. [Read more about JS modules in the browser.](https://v8.dev/features/modules#specifiers) That's why we use `'bootstrap.esm.min.js'` instead of `'bootstrap'` above. This is further complicated by our Popper dependency, which imports Popper like so:

```js
import * as Popper from "@popperjs/core"
Expand Down

0 comments on commit 0c35058

Please sign in to comment.