I built a custom Joomla 4 template and unfortunately Joomla is automatically loading collapse.min.js
When I view the page source I see this in the head:
<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.
Interestingly, this does not happen on my local (WAMP) environment. How do I prevent Joomla from loading collapse.min.js in my template?