angular-material-extensions / select-country

Angular Material component that allow users to select a country or nationality with an autocomplete feature
https://angular-material-extensions.github.io/select-country/
MIT License
126 stars 39 forks source link

large bundle size #126

Open YannikG opened 1 year ago

YannikG commented 1 year ago

Describe the bug I just ran the source-map-explorer on my project and noticed this package uses around 400KB (or ~23% of my entire main.js).

To Reproduce Steps to reproduce the behavior

  1. install source-map-explorer
  2. run source-map-explorer on any angular project using "@angular-material-extensions/select-country": "^8.1.0"
  3. look at the report

Expected behavior I would assume for this small extension a much smaller bundle size. @angular/material just uses 100KB more than @angular-material-extensions/select-country.

I really appreciate this project, but if I'm not able to reduce the bundle size, I have to ditch this extension and just use a regular old select.

Screenshots If applicable, add screenshots to help explain your problem. image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Did I do something wrong? Have I missed an important information?

Appreciate your help.

AnthonyNahas commented 1 year ago

I would appreciate a PR