moment-timezone ECMAScript module

Created on 9 Aug 2020  Â·  6Comments  Â·  Source: moment/moment-timezone

I am using moment-timezone in an angular project right now.

I get the following warning/trace:

component.ts depends on 'moment-timezone'. CommonJS or AMD dependencies can cause optimization bailouts.
For more info see: https://angular.io/guide/build#configuring-commonjs-dependencies

I search for this warning and found a statement suggesting to prompt the maintainers to feature an ECMAScript module for the dependency in question.

Angular version: 10.0.3

Most helpful comment

I got this warning message too

All 6 comments

I got this warning message too

Big +1 from me. I did not realize this was a problem before Angular started warning me about it. Would be nice to get a reply from the maintainers of this project if possible.

There was a PR 4yrs ago: https://github.com/moment/moment-timezone/pull/310.
Maintainers’ answer is basically ”Use Luxon.“

man, that is sad ...

man, that is sad ...
I agree.

if you wind up here might be worth noting how to get rid of the warning

image

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GMeulendyks picture GMeulendyks  Â·  5Comments

mj1856 picture mj1856  Â·  5Comments

jishaal picture jishaal  Â·  6Comments

edu2004eu picture edu2004eu  Â·  6Comments

garryyao picture garryyao  Â·  4Comments