Skip to content

Commit 0030d68

Browse files
committed
Add Object.assign() polyfill (#399)
1 parent aa8d2fb commit 0030d68

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
@@ -58,6 +58,7 @@
5858
"gzip-size": "3.0.0",
5959
"html-webpack-plugin": "2.22.0",
6060
"json-loader": "0.5.4",
61+
"object-assign": "4.1.0",
6162
"opn": "4.0.2",
6263
"postcss-loader": "0.9.1",
6364
"promise": "7.1.1",

0 commit comments

Comments
 (0)