Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

3 anos atrás
123456789101112131415161718192021222324252627
  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');