You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sideEffects: false field does not mean the library is pure. It's mostly a hack for webpack analyzer. Rollup uses it too but it's useful for more complicated cases like transpiled classes. This library is written with only functions.
It's set in v2 to false in the root directory and each module.
so Is this library pure?
It depends on what you mean by pure. The library code doesn't produce side effects so can be tree-shaken (that's why we have sideEffects). If you mean FP-pure, then yes it doesn't use Date.now at the moment but I'm going to change that, see #1184 but anyways date-fns/fp will stay pure.
It's a great project. I love it.
But I see sideEffect is not set in package.json.
so Is this library pure?
The text was updated successfully, but these errors were encountered: