File tree Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Expand file tree Collapse file tree 3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -23,16 +23,6 @@ Then add it to your babel configuration:
2323}
2424```
2525
26- ## styled-components v4 beta
27-
28- If you are using the styled-components v4 beta, you'll also need to use the beta version of this plugin:
29-
30- ```
31- npm install --save-dev babel-plugin-styled-components@beta
32- ```
33-
34- Older versions should technically work, but some of the bundle size reduction benefits are only realized with the newer code!
35-
3626## Documentation
3727
3828** The documentation for this plugin lives on [ the styled-components website] ( https://www.styled-components.com/docs/tooling#babel-plugin ) !**
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Named = styled(\'div\').withConfig({
99const NamedWithInterpolation = styled (\' div\' ).withConfig({
1010 displayName : \' unknown__NamedWithInterpolation\' ,
1111 componentId : \' sc-2vipsm-1\'
12- })([\' color:\' , \' ;\' ], color => props.color);
12+ })([\' color:\' , \' ;\' ], props => props.color);
1313
1414const Wrapped = styled (Inner ).withConfig ({
1515 displayName: \' unknown__Wrapped\' ,
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const Named = styled.div`
55`
66
77const NamedWithInterpolation = styled . div `
8- color: ${ color => props . color } ;
8+ color: ${ props => props . color } ;
99`
1010
1111const Wrapped = styled ( Inner ) `
You can’t perform that action at this time.
0 commit comments