-
Notifications
You must be signed in to change notification settings - Fork 270
Description
Hi there,
I have a customer complaint on our product now that we have implemented v2.0.2 of this library. The customer has a very old version of safari (I can give you the version at a later comment if you need it) which cannot parse the javascript line of code inside of react-dropdown-tree-select.js
e.exports=function(e,t){const n=e.filter(t);return 0!==n.length&&n.length!==e.length
It cannot parse it due to the fact that const shows up in the minified code. If I change it to var and recompile my package.json, safari is able to parse all the bundled javascript of the entire app and is able to render on an older version of safari.
So I am having a hard time finding this filter function in all of the node_modules or in your source code. Does anyone have any idea which dependency is outputting this const so I can fork it and put it to a var instead of a const?
I thought it might be a copy of react or something because I see SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED around that part of the code. Any help in understanding where this const declaration is coming from will help me greatly. I just cannot seem to find any resemblance of code matching that anywhere searching for .filter() doesnt show up at all in my searches.
Thanks for any insight!