File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ This plugin is a highly recommended supplement to the base styled-components lib
1212Install the plugin first:
1313
1414```
15- npm install --save-dev babel-plugin-styled-components
15+ npm i -D babel-plugin-styled-components
1616```
1717
1818Then add it to your babel configuration:
@@ -23,6 +23,16 @@ 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 i -D 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+
2636## Documentation
2737
2838** The documentation for this plugin lives on [ the styled-components website] ( https://www.styled-components.com/docs/tooling#babel-plugin ) !**
You can’t perform that action at this time.
0 commit comments