use-default.js 623 B

1234567891011121314151617181920
  1. (function () {
  2. /*
  3. * Interop for AMD modules to return the direct AMD binding instead of a
  4. * `{ default: amdModule }` object from `System.import`
  5. *
  6. * Note: This extra is deprecated and will be removed in the next major.
  7. */
  8. (function (global) {
  9. var systemJSPrototype = global.System.constructor.prototype;
  10. var originalImport = systemJSPrototype.import;
  11. systemJSPrototype.import = function () {
  12. return originalImport.apply(this, arguments).then(function (ns) {
  13. return ns.__useDefault ? ns.default : ns;
  14. });
  15. };
  16. })(typeof self !== 'undefined' ? self : global);
  17. })();