DEV Community

Discussion on: Angular Materials Mat-Icon component

Collapse
 
shivenigma profile image
Vignesh M

Hi @duncan , I saw that you are using a separate material module for the imports. But it might become a performance issue in large applications.
The material module is given as individual components because webpack can tree-shake the rest of the unused modules. If we start using material module, webpack can't figure out if a module is used in the application or not.

I was looking for docs for the MatIconRegistry, thanks for the post.