The webpack-bundle-analyzer shows Popper.js as being a large part of my bundle size. I'm not using any Pop-overs. Just: import { ButtonPlugin, NavbarPlugin, CarouselPlugin } from 'bootstrap-vue';
I'd like popper.js not installed if not needed and therefore a smaller bundle size.
According to this post on Stack Overflow: https://stackoverflow.com/a/47774860
Bootstrap 4 Beta - Is Popper.js required?
Not anymore, check THIS issue It seems Bootstrap has bundled Popper and Bootstrap v4 into a bundle.min.js file that is available if you try downloading now. HERE is a link directly to the bundled min file. Hope that helps someone who is not interested in adding a separate popper file
We only bundle popper.js in the browser UMD bundle now... so it shouldn't be getting added to your final bundle if you are not importing anything that uses dropdown, tooltips or popovers.
Note in your case, the navbar plugin includes dropdown plugin, which does use popper.js.
If you are not are not using dropdowns in your navbar, you can just import only the navbar/nav components you need, and not import BNavItemDropdown.
Most helpful comment
We only bundle popper.js in the browser UMD bundle now... so it shouldn't be getting added to your final bundle if you are not importing anything that uses dropdown, tooltips or popovers.
Note in your case, the navbar plugin includes dropdown plugin, which does use popper.js.
If you are not are not using dropdowns in your navbar, you can just import only the navbar/nav components you need, and not import BNavItemDropdown.