-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
moment-timezone include all data for specific timezone #303
Comments
There isn't an automatic way of doing this. However, you can strip out the timezone data you need and manually register the data. Afterwards, be sure to set Hopefully that help! |
Thanks Jason, I actually tried this originally but ran into issues where |
We're also looking for ways to reduce our build size, and moment-timezone is currently almost double the size of Ember itself in our bundle! Would love some suggestions on how to include less timezones and less locales for moment itself, etc. |
@rwwagner90 Does this not cover your use case: https://github.com/jasonmit/ember-cli-moment-shim#cherry-pick-locales-optimal |
@jasonmit that looks like it should work for locales. We currently have |
same here. a way to reduce the size due to timezone would be helpful |
Based on the options for including timezone data there doesn't appear to be a way to include all data for just one timezone. We only operate in the UK but hold data going back 20+ years so are currently having to import 'all'. It would reduce our build size if we could limit the import to just "Europe/London|Europe/Belfast".
Is there a way to do this?
The text was updated successfully, but these errors were encountered: