-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[React] Remove dependency on moment from components #1140
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mayflower version:
10.0.0-alpha.2
We recently added the
FooterSlim
component to our application and noticed the bundle size increased about 100kb. This seems to mostly be due to the inclusion ofmoment
as a dependency in this component, which comes with a large set of locale files:It looks like the footer component uses
moment
as a way to reference the current year in the copyright text, in which case something like the following should work without requiring an external dependency:https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/getFullYear
The text was updated successfully, but these errors were encountered: