const babel = require('babel-core')

const transformCfg = require('./babel-config')

module.exports = {
  process: function (src) {
    transformCfg.retainLines = true
    return babel.transform(src, transformCfg).code
  }
}

const babel = require('babel-core')

const babelCfg = require('./babel-config')
const transformCfg = babelCfg('test')
transformCfg.retainLines = true

module.exports = {
  process: function (src) {
    return babel.transform(src, transformCfg).code
  }
}

Update jest-preprocessor with updated babel config