Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 

33 rindas
1.1 KiB

  1. /**
  2. * Copyright (c) 2015-present, Facebook, Inc.
  3. *
  4. * This source code is licensed under the MIT license found in the
  5. * LICENSE file in the root directory of this source tree.
  6. */
  7. 'use strict';
  8. if (typeof Promise === 'undefined') {
  9. // Rejection tracking prevents a common issue where React gets into an
  10. // inconsistent state due to an error, but it gets swallowed by a Promise,
  11. // and the user has no idea what causes React's erratic future behavior.
  12. require('promise/lib/rejection-tracking').enable();
  13. window.Promise = require('promise/lib/es6-extensions.js');
  14. }
  15. // fetch() polyfill for making API calls.
  16. require('whatwg-fetch');
  17. // Object.assign() is commonly used with React.
  18. // It will use the native implementation if it's present and isn't buggy.
  19. Object.assign = require('object-assign');
  20. // Support for...of (a commonly used syntax feature that requires Symbols)
  21. require('core-js/es6/symbol');
  22. // Support iterable spread (...Set, ...Map)
  23. require('core-js/fn/array/from');
  24. // React 16+ relies on Map, Set, and requestAnimationFrame
  25. require('core-js/es6/map');
  26. require('core-js/es6/set');
  27. require('raf').polyfill(window);