module.exports = {
  plugins: ['@babel/plugin-proposal-async-generator-functions'],
  env: {
    es: {
      plugins: ['./babel-plugin-pure-curry']
    },
    cjs: {
      plugins: [
        'add-module-exports',
        '@babel/plugin-transform-modules-commonjs'
      ]
    }
  }
};

module.exports = {
  plugins: [
    ['@babel/plugin-transform-runtime', { useESModules: true, corejs: 2 }],
    '@babel/plugin-proposal-async-generator-functions'
  ],
  env: {
    test: {
      plugins: [['@babel/plugin-transform-runtime', { corejs: 2 }]]
    },
    es: {
      plugins: ['./babel-plugin-pure-curry']
    },
    cjs: {
      plugins: [
        'add-module-exports',
        '@babel/plugin-transform-modules-commonjs',
        ['@babel/plugin-transform-runtime', { corejs: 2 }]
      ]
    }
  }
};

Use babel helper modules on es2015 sources
Use babel helper modules on es2015 sources

Fixes #183
