separate .babelrc for prod/dev, add babel-plugin-lodash (#2829)
This commit is contained in:
parent
cf0b753209
commit
37caf0b36e
4 changed files with 26 additions and 4 deletions
17
.babelrc
17
.babelrc
|
@ -11,8 +11,6 @@
|
|||
]
|
||||
],
|
||||
"plugins": [
|
||||
"transform-react-jsx-source",
|
||||
"transform-react-jsx-self",
|
||||
"transform-decorators-legacy",
|
||||
"transform-object-rest-spread",
|
||||
[
|
||||
|
@ -21,5 +19,18 @@
|
|||
"messagesDir": "./build/messages"
|
||||
}
|
||||
]
|
||||
]
|
||||
],
|
||||
"env": {
|
||||
"development": {
|
||||
"plugins": [
|
||||
"transform-react-jsx-source",
|
||||
"transform-react-jsx-self"
|
||||
]
|
||||
},
|
||||
"production": {
|
||||
"plugins": [
|
||||
"lodash"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue