There should not be a dependence on importing all icons into rimble-ui. The current Icon component imports import * as RimbleIcons from @rimble/icons all icons or import Icon from "../Icon" . This creates a large library bundle size that does not tree-shake properly.
Components that utilize a global import that will need refactoring:
Icon
ToastMessage
Button
Refactor components to only import single icons as needed:
There should not be a dependence on importing all icons into rimble-ui. The current Icon component imports
import * as RimbleIcons from @rimble/icons
all icons orimport Icon from "../Icon"
. This creates a large library bundle size that does not tree-shake properly.Components that utilize a global import that will need refactoring:
Refactor components to only import single icons as needed: