Closed connorlindsey closed 8 months ago
Latest commit: 142d363a711191b3b8c1c9c8de5f72efd8fba43f
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Switches from
formatDistance
tointlFormatDistance
which uses the built-in browserIntl
object for formatting relative times: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat/RelativeTimeFormat#browser_compatibilityThis should greatly reduce the bundle size.
Fixes #18
TODO:
npm pack
but want to double check the difference