kernel/assist.js
function getBabelConfig(env) {
  var babelrcPath = path.join(__dirname, '.babelrc')
  var babelrc = JSON.parse(fs.readFileSync(babelrcPath))
  babelrc.presets = resolve(
    babelrc.presets.map(preset => 'babel-preset-' + preset)
  )
  if (!babelrc.plugins) babelrc.plugins = []
  return babelrc
}
function getBabelConfig(env) {
  var babelrcPath = path.join(__dirname, '.babelrc')
  var babelrc = JSON.parse(fs.readFileSync(babelrcPath))
  babelrc.presets = resolve(
    babelrc.presets.map(preset => 'babel-preset-' + preset)
  )
  if (!babelrc.plugins) babelrc.plugins = []
  return babelrc
}
function getBabelConfig ( env ) { var babelrcPath = path . join ( __dirname , '.babelrc' ) var babelrc = JSON . parse ( fs . readFileSync ( babelrcPath ) ) babelrc . presets = resolve ( babelrc . presets . map ( preset => 'babel-preset-' + preset ) ) if ( ! babelrc . plugins ) babelrc . plugins = [ ] return babelrc }
get babel config

@param  {String} env
@return {Object} babel config
get babel config