[docs] Importing JavaScript instruction incorrect for all plugins
Created by: mariusa
https://getbootstrap.com/docs/5.0/getting-started/webpack/ says
Importing JavaScript
Import Bootstrap’s JavaScript by adding this line to your app’s entry point (usually index.js or app.js):
// You can specify which plugins you need
import { Tooltip, Toast, Popover } from 'bootstrap';
Alternatively, if you only need just a few of our plugins, you may import plugins individually as needed:
The 1st section should go into 2nd section, and 1st should specify how to import all plugins:
Importing JavaScript
Import Bootstrap’s JavaScript by adding this line to your app’s entry point (usually index.js or app.js):
import * from 'bootstrap'; // TODO don't know which is the correct import for all plugins
Alternatively, if you only need just a few of our plugins, you may import plugins individually as needed:
// You can specify which plugins you need
import { Tooltip, Toast, Popover } from 'bootstrap';