Upgrading to Babel 7; Fixing failing tests
This commit is contained in:
26
.babelrc
Executable file
26
.babelrc
Executable file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"presets": [
|
||||
"@babel/preset-env",
|
||||
"@babel/preset-react"
|
||||
],
|
||||
"plugins": [
|
||||
"@babel/plugin-proposal-class-properties"
|
||||
],
|
||||
"env": {
|
||||
"development": {
|
||||
"plugins": [
|
||||
"react-element-info"
|
||||
],
|
||||
},
|
||||
"test": {
|
||||
"plugins": [
|
||||
"react-element-info",
|
||||
"@babel/plugin-transform-runtime",
|
||||
],
|
||||
"presets": [
|
||||
"@babel/preset-env",
|
||||
"@babel/preset-react"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user