Skip to content
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

Remove non-english locales from Moment.js #582

Merged
merged 1 commit into from Aug 5, 2020

Conversation

Mr0grog
Copy link
Member

@Mr0grog Mr0grog commented Aug 5, 2020

Our bundle size has grown pretty large, and a significant chunk of it used to be localization data for Moment.js. Since we only show the site in English, that's a bit of a waste. This removes non-English locales from our built bundle.

NOTE: Technically the extra locales aren’t currently being included and this PR makes no difference to the bundle size, but only because of a bug with Moment.js (see moment/moment#5489). The latest version of Moment fixes the issue, but pumps our size back up (see #556). This should prevent that.

This is a replacement for part of #490. Another part (adding bundle analyzer) I’ll do separately to keep things clean. And the last part (automatically checking for size increases) is already done in #579.

Our bundle size has grown pretty large, and a significant chunk of it is localization data for Moment.js. Since we only show the site in English, that's a bit of a waste. This removes non-English locales from our built bundle.
@Mr0grog Mr0grog added this to Working in Web Monitoring via automation Aug 5, 2020
@Mr0grog Mr0grog merged commit fe46583 into master Aug 5, 2020
Web Monitoring automation moved this from Working to Done! Aug 5, 2020
@Mr0grog Mr0grog deleted the 489-delocalize-momentjs-take-2 branch August 5, 2020 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Web Monitoring
  
Done!
Development

Successfully merging this pull request may close these issues.

None yet

1 participant