Closed kbrabrand closed 2 years ago
This is only the case for running the tests with TS Jest and does not affect the distributed package. Specifically if any syntax is used that might not be compatible with NodeJS 12. But since the tests are passing and the package itself does not contain any incompatible syntax this is not an issue.
I would just leave this as is, especially since NodeJS 12 will be end of life in April this year.
Agree. The build artifact is identical though, so it wouldn't make a difference. But you have a point with node 12 end of life, so I won't bother.
During CI on node 12 I got the following complaint:
This PR adjusts the target from
ES2020
👉ES2019
. I've tested it in a project and is seems to work fine, but since you were the one that proposed the changes for the move from cjs to esm, would you mind having a look, @jonkoops?