polyfills.js 448 Bytes
Newer Older
1
2
3
4
5
6
7
8
if (typeof Promise === 'undefined') {
  // Rejection tracking prevents a common issue where React gets into an
  // inconsistent state due to an error, but it gets swallowed by a Promise,
  // and the user has no idea what causes React's erratic future behavior.
  require('promise/lib/rejection-tracking').enable();
  window.Promise = require('promise/lib/es6-extensions.js');
}

9
// fetch() polyfill for making API calls.
10
require('whatwg-fetch');