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
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

Most helpful comment
I got this warning message too