Skip to content

v6.3.0

Compare
Choose a tag to compare
@icon-bot icon-bot released this 30 Jun 09:40
· 1652 commits to main since this release
977a3b4
  • 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 a styled-icons/types import for that type. If you previously imported it from styled-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'