Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.

Commit cc07649

Browse files
authored
Document how to pass options
1 parent 3eb1f27 commit cc07649

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ module.exports = function override(config, env) {
2828

2929
That's it, you're now using the `styled-components` Babel plugin!
3030

31+
To pass options to the Babel plugin use the third argument, it passes straight through to the plugin:
32+
33+
```JS
34+
config = rewireStyledComponents(config, env, {
35+
ssr: true,
36+
})
37+
```
38+
39+
See [the available options](https://www.styled-components.com/docs/tooling#babel-plugin) in the `styled-components` documentation.
40+
3141
## License
3242

3343
Licensed under the MIT License, Copyright ©️ 2017 Maximilian Stoiber. See [LICENSE.md](LICENSE.md) for more information.

0 commit comments

Comments
 (0)