momentjs - How can I load moment-timezone with data from 2012 2022 with webpack? -


because want reduce size of bundle, want load moment timezone data 2012 2022.

actually :

import moment "moment-timezone/builds/moment-timezone-with-data-2012-2022"; 

but randomly got error when try use moment-timezone:

moment.utc(...).tz(...) undefined 

do have idea how can load moment and/or moment-timezone avoid moment.utc(...).tz(...) undefined ?

i'm using webpack 3


Comments

Popular posts from this blog

javascript - Create a stacked percentage column -

Optimising Firebase database by automatically overwriting data -

javascript - Angular UI-Grid customTemplate directive causing rows to load slowly/? -