Only declare global.define while building to help isolate problems with UMD libraries that might also get loaded.  Note: this does not solve issues with parallelized tasks as can happen in gulp.