I have one of my modules in a separate js file, and it needs access to the window object to do its thing. For some reason, the require() function puts it in a scope where it can't simply do that by default.
How do I get around that limitation without injecting the window from outside?