Babel plugin must be loaded first
This commit is contained in:
parent
af03620071
commit
1e5e47ad25
1 changed files with 3 additions and 2 deletions
5
.babelrc
5
.babelrc
|
@ -6,6 +6,7 @@
|
||||||
"env": {
|
"env": {
|
||||||
"production": {
|
"production": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"babel-plugin-styled-components",
|
||||||
"transform-react-remove-prop-types",
|
"transform-react-remove-prop-types",
|
||||||
"@babel/plugin-transform-react-constant-elements",
|
"@babel/plugin-transform-react-constant-elements",
|
||||||
"@babel/plugin-transform-react-inline-elements",
|
"@babel/plugin-transform-react-inline-elements",
|
||||||
|
@ -48,6 +49,7 @@
|
||||||
},
|
},
|
||||||
"development": {
|
"development": {
|
||||||
"plugins": [
|
"plugins": [
|
||||||
|
"babel-plugin-styled-components",
|
||||||
"react-hot-loader/babel"
|
"react-hot-loader/babel"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -83,7 +85,6 @@
|
||||||
],
|
],
|
||||||
"@babel/plugin-proposal-nullish-coalescing-operator",
|
"@babel/plugin-proposal-nullish-coalescing-operator",
|
||||||
"@babel/plugin-proposal-do-expressions",
|
"@babel/plugin-proposal-do-expressions",
|
||||||
"@babel/plugin-proposal-function-bind",
|
"@babel/plugin-proposal-function-bind"
|
||||||
"babel-plugin-styled-components"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue