Skip to content

Commit 1e5e47a

Browse files
committed
Babel plugin must be loaded first
1 parent af03620 commit 1e5e47a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: .babelrc

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"env": {
77
"production": {
88
"plugins": [
9+
"babel-plugin-styled-components",
910
"transform-react-remove-prop-types",
1011
"@babel/plugin-transform-react-constant-elements",
1112
"@babel/plugin-transform-react-inline-elements",
@@ -48,6 +49,7 @@
4849
},
4950
"development": {
5051
"plugins": [
52+
"babel-plugin-styled-components",
5153
"react-hot-loader/babel"
5254
]
5355
}
@@ -83,7 +85,6 @@
8385
],
8486
"@babel/plugin-proposal-nullish-coalescing-operator",
8587
"@babel/plugin-proposal-do-expressions",
86-
"@babel/plugin-proposal-function-bind",
87-
"babel-plugin-styled-components"
88+
"@babel/plugin-proposal-function-bind"
8889
]
8990
}

0 commit comments

Comments
 (0)