reduxjs / reselect

Selector library for Redux
MIT License
19.03k stars 671 forks source link

Library do not work in Safari < 14.1 #694

Closed veksa closed 7 months ago

veksa commented 7 months ago

Error in console when including the library:

Unexpected token '=' . Expected an opening '(' before a method's parameter list

The same problem is described here: https://github.com/chakra-ui/chakra-ui/issues/6828

Setting the target to es2019 in the esm build will fix the problem for High Sierra to Catalina.

PR: https://github.com/reduxjs/reselect/pull/695

markerikson commented 7 months ago

We specifically target ES2020 out of the box for the release.

If you need to use older browsers, either transpile the default "modern" build artifact yourself, or use the "legacy" artifact already included in the package (which targets ES2017).