Fixed exports undefined bug for exports and define
Merge pull request #1 from davidpaulrosser/master

Fixed exports undefined bug for exports and define