Skip to content

styled-components/babel-plugin-styled-components-ssr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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):

{
  "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 for more information.

Acknowledgments

This repo is largely based on @vdanchenkovs excellent babel-plugin-styled-components-named. Thank you!

About

[EXPERIMENTAL]

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors