Skip to content

Import Size #73

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
MattHeslington opened this issue Aug 2, 2021 · 1 comment
Open

Import Size #73

MattHeslington opened this issue Aug 2, 2021 · 1 comment

Comments

@MattHeslington
Copy link

Hi,

I find your project pretty much invaluable and use it a lot. I'm just concerned about the file/icon import sizes. On importing just one icon into a component the Import Cost VS Code plugin informs me the import size is 1.8M (gzipped 213.5k). This is huge. Is it accurate?

Cheers,
Matt

@rabidkitten
Copy link

I've seen the same thing. If I create a new react app, include the package, the build size is 43.7kB and when I add a single icon to a component, the build size increases to 278kB. If I import the icon using "import CartOutline from 'react-ionicons/lib/CartOutline';" then the build size decreases down to 58.92kB, which is still a significant increase for a single icon. Is there another way to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants