Merge pull request #792 from sharetribe/add-more-polyfills

Add polyfills
This commit is contained in:
Vesa Luusua 2018-04-04 11:56:20 +03:00 committed by GitHub
commit 627db6e181
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -19,6 +19,7 @@
"helmet": "^3.12.0",
"lodash": "^4.17.5",
"moment": "^2.20.1",
"object.entries": "^1.0.4",
"path-to-regexp": "^2.2.0",
"prop-types": "^15.6.1",
"query-string": "^5.1.1",

View file

@ -10,3 +10,11 @@ require('array-includes').shim();
// [].find
require('array.prototype.find').shim();
// Object.entries
require('object.entries').shim();
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/parseFloat
if (typeof Number.parseFloat === 'undefined' && typeof window !== 'undefined') {
Number.parseFloat = window.parseFloat;
}