diff --git a/.babelrc b/.babelrc index 70ee90d..a937b76 100644 --- a/.babelrc +++ b/.babelrc @@ -4,13 +4,29 @@ "react" ], "plugins": [ - "react-hot-loader/babel" + "react-hot-loader/babel", + [ + "babel-plugin-styled-components", + { "ssr": true, "displayName": true, "preprocess": false } + ] ], "env": { "production": { + "plugins": [ + [ + "babel-plugin-styled-components", + { "ssr": true, "displayName": true, "preprocess": false } + ] + ], "presets": ["minify"] }, "test": { + "plugins": [ + [ + "babel-plugin-styled-components", + { "ssr": true, "displayName": true, "preprocess": false } + ] + ], "presets": ["env", "react"] } }