babel-plugin-styled-components

popular js
Improve the debugging experience and add server-side rendering support to styled-components
Keywords
styled-componentscss-in-jsbabel-pluginserver-side renderingssrdisplayName
INSTALL
Type:
Version:
- Static
- Latest Patch
- Latest Minor
- Latest Major
- 2.1.4
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.1-test
- 2.0.0
- 1.13.3
- 1.13.2
- 1.13.2-test.1
- 1.13.2-test.0
- 1.13.1
- 1.13.0
- 1.13.0-test.3
- 1.13.0-test.2
- 1.13.0-test.1
- 1.13.0-test
- 1.12.1
- 1.12.0
- 1.11.1
- 1.11.0
- 1.11.0-0
- 1.10.7
- 1.10.6
- 1.10.5
- 1.10.5-gatsby
- 1.10.4
- 1.10.3
- 1.10.2
- 1.10.2-ej8
- 1.10.2-ej7
- 1.10.2-ej6
- 1.10.2-ej5
- 1.10.2-ej4
- 1.10.2-ej3
- 1.10.2-ej2
- 1.10.2-ej1
- 1.10.2-ej0
- 1.10.1
- 1.10.1-ej2
- 1.10.1-ej1
- 1.10.1-ej0
- 1.10.1-1
- 1.10.1-0
- 1.10.0
- 1.9.5-0
- 1.9.4
- 1.9.4-0
- 1.9.3
- 1.9.3-0
- 1.9.2
- 1.9.1
- 1.9.1-0
- 1.9.0
- 1.9.0-1
- 1.9.0-0
- 1.8.0
- 1.8.0-1
- 1.8.0-0
- 1.7.2
- 1.7.1
- 1.7.0
- 1.7.0-0
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.2-0
- 1.6.1
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 0.0.3-1
- 0.0.3-0
- 0.0.2
<script src=" https://cdn.jsdelivr.net/npm/babel-plugin-styled-components@2.1.4/lib/visitors/transpileCssProp.min.js "></script>
No default JS file set by the package author so the URL is guessed. You can always browse all package files to use another one.
babel-plugin-styled-components
This plugin is a highly recommended supplement to the base styled-components library, offering some useful features:
- consistently hashed component classNames between environments (a must for server-side rendering)
- better debugging through automatic annotation of your styled components based on their context in the file system, etc.
- various types of minification for styles and the tagged template literals styled-components uses
Quick start
Install the plugin first:
npm install --save-dev babel-plugin-styled-components
Then add it to your babel configuration:
{
"plugins": ["babel-plugin-styled-components"]
}
Changelog
See Github Releases
Documentation
The documentation for this plugin lives on the styled-components website!
License
Licensed under the MIT License, Copyright © 2016-present Vladimir Danchenkov and Maximilian Stoiber.
See LICENSE.md for more information.