Skip to content

Commit

Permalink
Polyfill Object.values for Safari 9
Browse files Browse the repository at this point in the history
  • Loading branch information
phogel committed Jun 26, 2018
1 parent 614d2e9 commit a58edd3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/polyfill.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
/* eslint-disable global-require */
export function generatePolyfills(){
if(!Object.values) {
require('core-js/modules/es7.object.values');
}

if(window.Promise) {
return;
}
Expand All @@ -9,7 +13,6 @@ export function generatePolyfills(){
require('core-js/modules/es6.array.iterator');
require('core-js/modules/es6.array.fill');
require('core-js/modules/es6.promise');
require('core-js/modules/es7.object.values');

require('core-js/modules/_core');
}
Expand Down

0 comments on commit a58edd3

Please sign in to comment.