Closed alexnm closed 5 years ago
Both style plugins currently add the dependencies even if no style is present on the component.
For styled-components it's:
import styled from 'styled-components'
For JSS it's:
import injectSheet from 'react-jss'
and the HOC
injectSheet(style)(Component)
@alexnm this is happening only in the case of StyledComponents, for JSS it's working fine 🤔
JSS --> https://github.com/teleporthq/teleport-code-generators/blob/master/packages/teleport-plugin-react-jss/src/index.ts#L74
right, I got a wrong impression from an example probably
Both style plugins currently add the dependencies even if no style is present on the component.
For styled-components it's:
For JSS it's:
and the HOC