You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
@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: