Steps to reproduce:
MatMomentDateModule on your angular app. ng build --prod.Screenshot of webpack-bundle-analyzer of the main bundle (built with --stats-json):

Addition of a "simple" widget should not increase the output bundle size dramatically.
Huge increase in the bundle size, on the order of a few hundred kilobytes. (Over 338kb added by moment.js alone, in my example.)
It would be great if MatMomentDateAdapter could work with moment-mini
moment.js unfortunately doesn't do well with tree shaking. Here are some extra info on alternatives that do.
Thanks for this issue. We are aware of the limitations with MomentJS. We should really document the bundle size implications with the moment date adapter. Additionally it might be good to provide a better integrated date adapter (one that can be more optimized).
We have various proposals for other date adapters (such as date-fns or day.js)
Related feature request for date-fns Adapter: https://github.com/angular/components/issues/10278. PRs wanted for this.
Tracking providing official alternatives to moment in #20599
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
Thanks for this issue. We are aware of the limitations with MomentJS. We should really document the bundle size implications with the moment date adapter. Additionally it might be good to provide a better integrated date adapter (one that can be more optimized).
We have various proposals for other date adapters (such as
date-fnsorday.js)