You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
500 B
18 lines
500 B
import Promise from './es6-promise/promise'; |
|
import polyfill from './es6-promise/polyfill'; |
|
|
|
var ES6Promise = { |
|
'Promise': Promise, |
|
'polyfill': polyfill |
|
}; |
|
|
|
/* global define:true module:true window: true */ |
|
if (typeof define === 'function' && define['amd']) { |
|
define(function() { return ES6Promise; }); |
|
} else if (typeof module !== 'undefined' && module['exports']) { |
|
module['exports'] = ES6Promise; |
|
} else if (typeof this !== 'undefined') { |
|
this['ES6Promise'] = ES6Promise; |
|
} |
|
|
|
polyfill();
|
|
|