index.js 403 B

12345678910111213141516171819
  1. /* global window */
  2. import ponyfill from './ponyfill.js';
  3. var root;
  4. if (typeof self !== 'undefined') {
  5. root = self;
  6. } else if (typeof window !== 'undefined') {
  7. root = window;
  8. } else if (typeof global !== 'undefined') {
  9. root = global;
  10. } else if (typeof module !== 'undefined') {
  11. root = module;
  12. } else {
  13. root = Function('return this')();
  14. }
  15. var result = ponyfill(root);
  16. export default result;