I built a custom Joomla 4 template and unfortunately Joomla is automatically loading
<script src="/media/vendor/bootstrap/js/collapse.min.js?5.1.3" type="module"></script>
This is conflicting with the curated Boostrap 5 files that my template already loads. The result that anything in my template that uses Bootstrap collapse (accordion, navbar) is broken.
How do I prevent Joomla from loading
collapse.min.js (and
bootstrap-es5.min.js, which is also being loaded) in my template? Any help appreciated!