Files
shaka-player/build/wrapper.template.js
T
Joey Parrish 5f3a153913 Refactor compilation wrappers.
The new wrapper has been tested using:
 * commonJS in node.js
 * requireJS in node.js
 * requireJS in a browser
 * directly in a browser

This also corrects the exports for commonJS to omit the "shaka"
namespace.  For example, you now get "module.exports.player" instead
of "module.exports.shaka.player".

Change-Id: Idf6b05d7d667aded925818001f730747ceeae2e9
2015-04-10 12:38:07 -07:00

7 lines
243 B
JavaScript

(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;
})();