diff --git a/config/polyfills.js b/config/polyfills.js index 1f71e4ac4f2..7e601502b24 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 9b9002a0903..03a0938990a 100644 --- a/package.json +++ b/package.json @@ -58,6 +58,7 @@ "gzip-size": "3.0.0", "html-webpack-plugin": "2.22.0", "json-loader": "0.5.4", + "object-assign": "4.1.0", "opn": "4.0.2", "postcss-loader": "0.9.1", "promise": "7.1.1",