web: Added babel-plugin-styled-components

This commit is contained in:
Alexey Safronov 2019-06-03 10:00:00 +03:00
parent adaec6d022
commit cc8af39b05
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@
"babel-plugin-macros": "^2.5.1",
"babel-plugin-module-rewrite": "0.2.0",
"babel-plugin-react-intl": "3.0.1",
"babel-plugin-styled-components": "^1.10.0",
"babel-plugin-transform-dynamic-import": "2.1.0",
"babel-plugin-transform-react-remove-prop-types": "0.4.24",
"babel-plugin-transform-rename-import": "2.3.0",

View File

@ -70,6 +70,7 @@ module.exports = function getBabelPreset() {
]
].filter(Boolean),
plugins: [
require("babel-plugin-styled-components").default,
// Experimental macros support. Will be documented after it's had some time
// in the wild.
require("babel-plugin-macros").default,