Skip to content

Commit

Permalink
Add Object.assign() polyfill (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon committed Aug 22, 2016
1 parent aa8d2fb commit 0030d68
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 @@ -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",
Expand Down

0 comments on commit 0030d68

Please sign in to comment.