mirror of
https://github.com/kingomarnajjar/flex-template-web.git
synced 2026-07-28 20:53:24 +10:00
Merge pull request #792 from sharetribe/add-more-polyfills
Add polyfills
This commit is contained in:
commit
627db6e181
2 changed files with 9 additions and 0 deletions
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue