Skip to content

Commit

Permalink
Add Object.assign() polyfill (facebook#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored and feiqitian committed Oct 25, 2016
1 parent 73a116e commit 0af7262
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 0af7262

Please sign in to comment.