-
Notifications
You must be signed in to change notification settings - Fork 835
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
How to use moment-timezone with moment without locales or moment-mini #786
Comments
@Frost, Did you find any solution? |
no :( |
@F0b0s well, I've been thinking of making moment-timezone a proper plugin that gets passed a moment instance, that would probably work with tiny moment (of course if moment-timezone uses locale API it won't), but you get the idea. You can fork the repo and tweak it slightly so moment-timezone "adds" .tz only for a passed in moment and not from imported moment, and give it a go, then report your findings. |
To be fair importing moment shouldn't import any locales, maybe if you're using some fancy package manager that is dumb and puts locales in anyway, you can just instruct it not to... |
Hello, are there any possibility to use moment-timezone with moment without locales(or maybe with subset of locales) or moment-mini? I would like to reduce bundle size.
The text was updated successfully, but these errors were encountered: