базовый клиент на сайте

This commit is contained in:
Alexey Kasyanchuk
2017-01-01 05:56:09 +03:00
parent d8928b8eb4
commit 46708c8f7e
26 changed files with 3331 additions and 17 deletions

14
config/polyfills.js Normal file
View File

@ -0,0 +1,14 @@
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');