import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';

var pkg = require('./package.json');

export default {
  entry: 'src/index.js',
  plugins: [babel(babelrc())],
  exports: 'named',
  targets: [
    {
      format: 'es6',
      dest: pkg['jsnext:main']
    },
    {
      format: 'umd',
      moduleName: 'coffeelex',
      dest: pkg['main']
    }
  ]
};

import babel from 'rollup-plugin-babel';
import babelrc from 'babelrc-rollup';

var pkg = require('./package.json');

export default {
  entry: 'src/index.js',
  plugins: [babel(babelrc())],
  exports: 'named',
  targets: [
    {
      format: 'es',
      dest: pkg['jsnext:main']
    },
    {
      format: 'umd',
      moduleName: 'coffeelex',
      dest: pkg['main']
    }
  ]
};

use the new 'es' name for the ES module format