I am working on a static site, and I want to split my index.js file into 2 smaller files: one for the actual script, and another for all the data. For me, only the index.js file is running. Right now my other file is supposed to just save all the data to a global variable, but it’s not running at all. Is there a way to run multiple JS files in a project? I have explored solutions such as browserify but I cannot figure out how to install them into a Glitch project.
Edit: I could save all the data in an .env file but I would rather leave the data public