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

tree shaking moment dependency #1109

Merged
merged 5 commits into from
Nov 4, 2021
Merged

tree shaking moment dependency #1109

merged 5 commits into from
Nov 4, 2021

Conversation

stackoverfloweth
Copy link
Contributor

@stackoverfloweth stackoverfloweth commented Nov 3, 2021

PR Checklist:

  • add a short description of what's changed to the top of the CHANGELOG.md
  • add/update tests (or don't, for reasons explained below)

Describe this PR

using webpacks tooling, I was able to slim down the dependency of moment/locale down to just a handful of locales that we might need in the future (would be easy to adjust or add more when needed). This change brought the moment bundle from 672.3K to 200.1K.

should have no impact on users

znicholasbrown
znicholasbrown previously approved these changes Nov 4, 2021
@zhen0 zhen0 merged commit 6308745 into master Nov 4, 2021
@zhen0 zhen0 deleted the tree-shake/moment branch November 4, 2021 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants