hi this is probably a stupid question but I cant find an answer, I am using vanilla js, without any bundler I need to use the Toast bootstrap class, how do I load a js package into a tag script?
<script type="text/javascript" src="../static/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
If I write my script tag as in the code above, I can use the Bootstrap Toast class in the code inside the script tag, but I can't use any other js package, knowing that I can't use an import statement, I am lost but I'm pretty sure it's basic knowledge. What I need is how to use bootstrap5 inside a script tag without using src, there is no bootstrap object on the window object. Keep in mind that I have already import bootstrap5 css and Js elsewhere on the page, I just need to access objects from the package.