Skip to content

Commit bd2509a

Browse files
authored
Add Object.assign() polyfill (#399)
1 parent ed97055 commit bd2509a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/polyfills.js

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ if (typeof Promise === 'undefined') {
88

99
// fetch() polyfill for making API calls.
1010
require('whatwg-fetch');
11+
12+
// Object.assign() is commonly used with React.
13+
// It will use the native implementation if it's present and isn't buggy.
14+
Object.assign = require('object-assign');

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
"http-proxy-middleware": "0.17.0",
6666
"jest": "14.1.0",
6767
"json-loader": "0.5.4",
68+
"object-assign": "4.1.0",
6869
"opn": "4.0.2",
6970
"path-exists": "3.0.0",
7071
"postcss-loader": "0.9.1",

0 commit comments

Comments
 (0)