Documentation error on Optimize page
Created by: K-Thompson
Prerequisites
-
I have searched for duplicate or closed issues -
I have validated any HTML to avoid common problems -
I have read the contributing guidelines
Describe the issue
Documentation for v5.x says Files in bootstrap/js/dist use the default export which does not seem to be the case. When I try to build with Rollup, I get an error
Error: 'default' is not exported by node_modules\bootstrap\js\dist\dropdown.js, imported by src\js\bootstrap-build.js
It seems that components need to be imported from ..src.. not ...dist__ at least when using Rollup and exporting to umd format.
Reduced test cases
For a complete (working), custom Rollup bundle project, please see my answer to another user's StackOverflow question
What operating system(s) are you seeing the problem on?
Windows
What browser(s) are you seeing the problem on?
Chrome
What version of Bootstrap are you using?
v.5.x