Okay, so this actually had nothing to do with dojoBuild itself but more to do with the error reporting.
The error was actually inside of the module, but when dojoBuild ran and compressed it, I'm guessing that when it errored, it defaulted the reporting to line 1 of the uncompressed file, which made me believe it was the define function that was undefined when really it was something else.