Some code is emitted outside the UMD wrapper by the TypeScript compiler (decorator utilities etc). This should be supported and tested.