I'm unclear how this can work.  You're using a sync require call on an AMD module.