https://github.com/styled-components/babel-plugin-styled-components-ssr
[EXPERIMENTAL]
https://github.com/styled-components/babel-plugin-styled-components-ssr
Last synced: 5 months ago
JSON representation
[EXPERIMENTAL]
- Host: GitHub
- URL: https://github.com/styled-components/babel-plugin-styled-components-ssr
- Owner: styled-components
- License: mit
- Created: 2016-11-21T10:50:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-21T10:55:31.000Z (over 9 years ago)
- Last Synced: 2025-04-03T22:45:46.359Z (about 1 year ago)
- Language: JavaScript
- Size: 29.3 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `babel-plugin-styled-components-ssr`
Add server-side rendering support to `styled-components`!
## Usage
**NOT LIVE YET BECAUSE EXPERIMENTAL, WE AREN'T SURE IF WE ACTUALLY NEED THIS JUST YET**
```
npm install --save-dev babel-plugin-styled-components-ssr
```
Then in your babel configuration (probably `.babelrc`):
```JSON
{
"plugins": ["styled-components-ssr"]
}
```
## Todo before release
- [ ] Figure out if we actually need this
- [ ] Add support for different import name, e.g. `import s from 'styled-components'` breaks at the moment
- [ ] More tests to make sure we're solid and have covered all the edge cases
## License
Licensed under the MIT License, Copyright © 2016 Maximilian Stoiber.
See [LICENSE.md](./LICENSE.md) for more information.
## Acknowledgments
This repo is largely based on [@vdanchenkov](https://github.com/vdanchenkov)s excellent [`babel-plugin-styled-components-named`](https://github.com/vdanchenkov/babel-plugin-styled-components-named). Thank you!