github callstack/linaria @linaria/react@4.5.1

latest releases: @linaria/core@6.2.0, @linaria/react@6.2.0, linaria@6.1.1...
16 months ago

Patch Changes

  • ceca161: Enable optimisation from #1276 for complex expressions such as styled(Component as unknow) or styled(connect(Component)).

  • 1325830: Variables in props-based interpolation functions are no longer required for the evaluation stage.
    Here's an example:

    import { getColor } from "very-big-library";
    
    export const Box = styled.div\`
      color: ${props => getColor(props.kind)};
    \`;
    

    In versions prior to and including 4.5.0, the evaluator would attempt to import getColor from very-big-library, despite it having no relevance to style generation. However, in versions greater than 4.5.0, very-big-library will be ignored.

  • Updated dependencies [ceca161]

  • Updated dependencies [1325830]

    • @linaria/tags@4.5.1
    • @linaria/core@4.5.1

Don't miss a new linaria release

NewReleases is sending notifications on new releases.