Skip to content

Commit 65fdf02

Browse files
gaearonGeorge Czabania
authored and
George Czabania
committed
Add Object.assign() polyfill (facebook#399)
1 parent 6c36b98 commit 65fdf02

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

config/polyfills.js

Lines changed: 4 additions & 0 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"http-proxy-middleware": "0.17.0",
6767
"jest": "14.1.0",
6868
"json-loader": "0.5.4",
69+
"object-assign": "4.1.0",
6970
"opn": "4.0.2",
7071
"path-exists": "3.0.0",
7172
"postcss-loader": "0.9.1",

0 commit comments

Comments
 (0)