I have a script which handles a category selection system.
It works fine in dev, but it stops working when built, so Im guessing this has to do with it being bundled.
How do I stop it from being bundled?
Edit: when bundled, the category selector still works (see image), just the divs don't update accordingly
I'm loading the script like this:
<script src="../scripts/categoryHandler.ts"></script>
The file itself is in src/scripts/
I tried switching to a .js inside the public directory and using
<script src="/scripts/categoryHanderl.js" is:inline></script>
but that made it not work at all