import babel from 'rollup-plugin-babel';

export default {
  entry: 'src/index.js',
  plugins: [babel({
    babelrc: false,
    presets: ['es2015-rollup'],
    plugins: ['syntax-flow', 'transform-flow-strip-types']
  })]
};

@@ -38,185 +38,332 @@
 l';%0A
-%0Aex
+im
 port 
-default %7B%0A  entry: 'src/index.js',%0A  plugins: %5Bbabel(%7B%0A    babelrc: false,%0A    presets: %5B'es2015-rollup'%5D,%0A    plugins: %5B'syntax-flow', 'transform-flow-strip-types'%5D%0A  %7D
+%7B readFileSync %7D from 'fs';%0A%0Alet babelConfig = JSON.parse(readFileSync('.babelrc', %7B encoding: 'utf8' %7D));%0AbabelConfig.presets = babelConfig.presets.map(%0A  preset =%3E preset === 'es2015' ? 'es2015-rollup' : preset%0A);%0AbabelConfig.babelrc = false;%0A%0Aexport default %7B%0A  entry: 'src/index.js',%0A  plugins: %5Bbabel(babelConfig
 )%5D%0A%7D

Read babel config from .babelrc.