-
Fix issue where TypeScript compiler would evaluate all icon files, regardless of what icons were imported, significantly increasing compile time. This was due to the
StyledIcon
TypeScript type. To resolve, there is now astyled-icons/types
import for that type. If you previously imported it fromstyled-icons
, you should update to speed up your builds.If you previously had this code:
import {StyledIcon} from 'styled-icons' // or import {StyledIconProps} from 'styled-icons'
You should replace it with:
import {StyledIcon} from 'styled-icons/types' import {StyledIconProps} from 'styled-icons/types'