After digging around the error seems to be here
"function" === typeof define && typeof define.amd ?
define(function () {
return t })
: "undefined" !== typeof exports ?
"undefined" !== typeof module && module.exports ? module.exports = exports = t
: exports = t
: this.jsSHA = t
I'm using requireJS and the define() returns t which I was unaware of