Open ocBruno opened 4 years ago
Some reference: https://fontawesome.com/how-to-use/with-the-api/other/tree-shaking
Thanks for the reference, this is what I was using to debug but I attempted various methods with no success and stopped at the custom build configs. Not sure if anyone with rollup experience wants to tackle this..
@lloui-donut which commit do you refer to?
seems to be a commit that was never merged into the main repo...
A group of students from a university course was hoping to take this on for an open-source assignment, could we take this on?
@ocBruno I'd like to work on this issue
🐛 Bug Report
After looking at the size of the build and the config I noticed the whole free-solid-svg-icons library was being imported.
To reproduce
yarn clone github.com/hospitalrun/components
view index.tsx fileThis bug is related to following issue as it is taking up space in the hospitalrun build
https://github.com/HospitalRun/hospitalrun-frontend/issues/1808
Expected behavior
Only import necessary icons