polyfills.js 356 B

12345678910111213
  1. /* eslint-disable import/no-extraneous-dependencies */
  2. if (typeof Promise === 'undefined') {
  3. require('promise/lib/rejection-tracking').enable();
  4. window.Promise = require('promise/lib/es6-extensions.js');
  5. }
  6. require('whatwg-fetch');
  7. Object.assign = require('object-assign');
  8. if (process.env.NODE_ENV === 'test') {
  9. require('raf').polyfill(global);
  10. }