update babel and jest

This commit is contained in:
Valeriy
2018-09-11 22:57:13 +03:00
committed by Mrugesh Mohapatra
parent 36df5b8ef9
commit 8bfac64d4b
7 changed files with 390 additions and 320 deletions

View File

@@ -0,0 +1,23 @@
const babelOptions = {
presets: [
'@babel/preset-env',
'@babel/react'
],
plugins: [
'@babel/plugin-proposal-function-bind',
[
'transform-imports', {
'react-bootstrap': {
transform: 'react-bootstrap/lib/${member}',
preventFullImport: true
},
lodash: {
transform: 'lodash/${member}',
preventFullImport: true
}
}
]
]
};
module.exports = require('babel-jest').createTransformer(babelOptions);