(function(){var g={};
(function(window){%output%}.bind(g,this))();
if (typeof(module)!="undefined"&&module.exports)module.exports=g.shaka;
else if (typeof(define)!="undefined")define(function(){return g.shaka});
else this.shaka=g.shaka;
})();

@@ -168,16 +168,30 @@
 defined%22
+ && define.amd
 )define(

Check for define.amd along with typeof(define)