reduxjs / reselect

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

Set target to es2019 on esm build #695

Closed veksa closed 7 months ago

veksa commented 7 months ago

Library do not work in Safari < 14.1

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

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

netlify[bot] commented 7 months ago

Deploy Preview for reselect-docs canceled.

Name Link
Latest commit da8ef5fd1de8be82b75a5b35ad961286d3b7829b
Latest deploy log https://app.netlify.com/sites/reselect-docs/deploys/65bcb6147be3c90008dfb564
codesandbox-ci[bot] commented 7 months ago

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit da8ef5fd1de8be82b75a5b35ad961286d3b7829b:

Sandbox Source
Vanilla Typescript Configuration
markerikson commented 7 months ago

Per #694, we explicitly target modern JS syntax by default - either transpile the dependency as part of your build step, or alias to use the "legacy" build artifact in the package.