Open F0b0s opened 5 years ago
@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.