Skip to content
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

Large bundle size because all font-awesome icons are included #103

Open
MrToph opened this issue Nov 9, 2020 · 2 comments · Fixed by eoscostarica/ual-reactjs-renderer#1 · May be fixed by #105
Open

Large bundle size because all font-awesome icons are included #103

MrToph opened this issue Nov 9, 2020 · 2 comments · Fixed by eoscostarica/ual-reactjs-renderer#1 · May be fixed by #105

Comments

@MrToph
Copy link

MrToph commented Nov 9, 2020

Hi, I noticed a huge bundle size for all projects using ual-reactjs-renderer.
Bundlephobia reports the same - 2MB minified.

After some investigation, the issue seems to be the usage of react-icons which includes all SVGs.

image

@MrToph
Copy link
Author

MrToph commented Nov 10, 2020

Fixed this in #104 and published a temporary (?) package under @cmichel/ual-reactjs-renderer.

There should be a solution using webpack or rollup instead of transpiling with babel but I couldn't make it work.
If the changes or another fix is merged upstream, I'll deprecate my package.

@Fabioepb
Copy link

How is this not fixed over a year later?

The build size of the project I'm working on tripled just by including this library..

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