text: import babel from 'rollup-plugin-babel';
  import babelrc from 'babelrc-rollup';
  import istanbul from 'rollup-plugin-istanbul';
  // import eslint from 'rollup-plugin-eslint';
  // var flow = require('rollup-plugin-flow');
  
  let pkg = require('./package.json');
  let external = Object.keys(pkg.dependencies);
  
  let plugins = [
    babel(babelrc()),
  ];
  
  if (process.env.BUILD !== 'production') {
    plugins.push(istanbul({
      exclude: ['test/**/*', 'node_modules/**/*']
    }));
  }
  
  export default {
    entry: 'lib/index.js',
    plugins: plugins,
    external: external,
    targets: [
      {
        dest: pkg.main,
        format: 'umd',
        moduleName: 'rollupStarterProject',
        sourceMap: true
      },
      {
        dest: pkg.module,
        format: 'es',
        sourceMap: true
      }
    ]
  };
  