Right now it just outputs an ES module, but I've discovered this means that the variables it sets can actually be overwritten, which breaks core functionality. format: 'iife' will mean the whole thing is wrapped in a function that'll stop this from occurring.