v1.7.0
This minor release reintroduces "pure" annotation of styled components and the various library helper methods. It is off by default, so if you want to turn it on pass this config to the plugin:
.babelrc
{
"plugins": [
["babel-plugin-styled-components", { "pure": true }]
]
}"pure" annotation helps signal to minifiers like uglify that a piece of code is safe to remove if not used in at least one other place. This means if you have any components lying around that you're not actively using, they'll be dead code eliminated with this featured enabled. That goes for the helpers too like createGlobalStyle, keyframes, and css.