Skip to content
This repository was archived by the owner on Jan 21, 2021. It is now read-only.

Commit 8d275fd

Browse files
authored
Merge pull request #46 from GoogleChromeLabs/object-values-shim
Object.values() shim
2 parents bcc54e5 + 7d18f31 commit 8d275fd

File tree

3 files changed

+93
-1
lines changed

3 files changed

+93
-1
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616
*/
1717
'use strict';
1818

19+
// See https://github.com/GoogleChromeLabs/preload-webpack-plugin/issues/45
20+
require('object.values').shim();
21+
1922
const objectAssign = require('object-assign');
2023

2124
const flatten = arr => arr.reduce((prev, curr) => prev.concat(curr), []);

package-lock.json

Lines changed: 88 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"webpack": "^3.2.0"
4242
},
4343
"dependencies": {
44-
"object-assign": "^4.1.1"
44+
"object-assign": "^4.1.1",
45+
"object.values": "^1.0.4"
4546
}
4647
}

0 commit comments

Comments
 (0)