Dust not working with require js optimization script

I exported dust to window if its in the browser environment, seems to fix all of my issues.