Skip to content

Commit 9e60959

Browse files
committed
add note on beta-to-be
1 parent 56d8d43 commit 9e60959

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This plugin is a highly recommended supplement to the base styled-components lib
1212
Install the plugin first:
1313

1414
```
15-
npm install --save-dev babel-plugin-styled-components
15+
npm i -D babel-plugin-styled-components
1616
```
1717

1818
Then 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)!**

0 commit comments

Comments
 (0)