diff --git a/config/polyfills.js b/config/polyfills.js index 1f71e4ac4f204f316b317013e9b0e5c72dad9ba8..7e601502b24b7ffeb3d4eebd9e33eaae6680c8c8 100644 --- a/config/polyfills.js +++ b/config/polyfills.js @@ -8,3 +8,7 @@ if (typeof Promise === 'undefined') { // 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'); diff --git a/package.json b/package.json index 4f82dd29a1309a31dc3f5f41f46ef05382c982e9..4dafc9670e7519b09bdf49c4ebf84a0470456044 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "http-proxy-middleware": "0.17.0", "jest": "14.1.0", "json-loader": "0.5.4", + "object-assign": "4.1.0", "opn": "4.0.2", "path-exists": "3.0.0", "postcss-loader": "0.9.1",