Drop moment support from i18n-calypso
.
#39030
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR gets rid of
moment
as a dependency ofi18n-calypso
, as nothing should be making use of that functionality anymore.This will also be the final step in getting rid of
moment
in thelogin
entry point, saving ~20KB (compressed).Changes proposed in this Pull Request
i18n.moment
moment
prop fromi18n.localize
Testing instructions
It's hard to provide detailed instructions, since this could potentially affect any part of Calypso. I tried to go through and convert every usage of
i18n-calypso
'smoment
into something else in previous PRs, but I may have missed something.