Version: 0.0.20.0.30.1.00.2.00.2.10.2.20.2.30.2.40.2.50.2.60.2.70.2.80.2.90.3.00.3.10.3.40.3.110.3.120.3.130.3.150.3.160.3.170.3.180.3.190.3.200.3.210.3.220.3.230.3.24-alfa0.3.25-alfa0.3.26-alfa0.3.27-alfa0.3.28-alfa0.3.29-alfa0.3.30-alfa0.3.300.3.31-alfa.10.3.310.3.410.3.420.3.44-beta.00.3.44-beta.10.3.44-beta.20.3.44-beta.30.3.44-beta.40.3.44-beta.50.3.44-beta.60.3.44-beta.70.3.44-beta.80.3.440.3.45-beta.10.3.45-beta.20.3.45-beta.30.3.46-beta.00.3.46-beta.10.3.46-beta.20.3.46-beta.100.3.46-release.00.3.46-release.10.3.46-release.20.3.46-release.30.3.46-release.40.3.47-beta.00.3.47-beta.10.3.47-beta.20.3.47-beta.30.3.47-beta.40.3.47-beta.50.3.47-beta.60.3.47-beta.70.3.47-beta.80.3.47-beta.90.3.47-beta.100.3.47-beta.110.3.47-beta.120.3.47-release.10.3.48-beta.00.3.48-beta.10.3.48-beta.20.3.48-beta.30.3.48-beta.40.3.48-beta.50.3.48-beta.60.3.48-beta.70.3.48-beta.80.3.48-beta.90.3.48-release.00.3.48-release.10.3.49-alfa.00.3.49-beta.00.3.50-alfa.00.3.50-alfa.10.3.50-alfa.20.3.50-alfa.30.3.50-alfa.40.3.50-alfa.50.3.50-alfa.60.3.50-alfa.70.3.50-alfa.80.3.50-alfa.90.3.50-alfa.100.3.50-beta.00.3.50-rc.00.3.50-rc.10.3.51-alfa.00.3.51-alfa.11.1.01.1.1
// @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
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');
}
// fetch() polyfill for making API calls.
require('whatwg-fetch');
// Object.assign() is commonly used with React.
// It will use the native implementation if it's present and isn't buggy.
Object.assign = require('object-assign');
// In tests, polyfill requestAnimationFrame since jsdom doesn't provide it yet.
// We don't polyfill it in the browser--this is user's responsibility.
if (process.env.NODE_ENV === 'test') {
require('raf').polyfill(global);