systemjs
Version:
Dynamic ES module loader
14 lines (13 loc) • 509 B
JavaScript
(function(){/*
* Interop for AMD modules to return the direct AMD binding instead of a
* `{ default: amdModule }` object from `System.import`
*/
(function (global) {
var systemJSPrototype = global.System.constructor.prototype;
var originalImport = systemJSPrototype.import;
systemJSPrototype.import = function () {
return originalImport.apply(this, arguments).then(function (ns) {
return ns.__useDefault ? ns.default : ns;
});
};
})(typeof self !== 'undefined' ? self : global);}());