Using RequireJS, how can I simulate typical JS global variables?
Currently I have a module tat simply has named pairs, and I include that module in my main.js module.
Is this a correct way to go about using global variables in RJS?
I had a look at this answer, and the chap is using setters and getters, would I need to do that for all my "globals"? (basically, I have a lot of globals, so it'd mean a huge file in the end)
Or should I look at using the RJS config?
If so, is there a way to change a config variable afterwards? E.G If I want to initially set a URL, but later on I might change it in a module. Is that acceptable/doable?