import babel from 'rollup-plugin-babel'

export default {
  input: './src/index.js',
  output: {
    format: 'cjs',
    file: 'dist/rollup-plugin-sass.js'
  },
  external: [
    'babel-runtime/regenerator',
    'babel-runtime/core-js/json/stringify',
    'babel-runtime/core-js/object/assign',
    'babel-runtime/core-js/object/keys',
    'babel-runtime/helpers/asyncToGenerator',
    'babel-runtime/helpers/toConsumableArray',
    'babel-runtime/helpers/typeof',
    'path',
    'fs',
    'node-sass',
    'util',
    'rollup-pluginutils',
    'fs-extra'
  ],
  plugins: [
    babel({
      exclude: './node_modules/**',
      runtimeHelpers: true
    })
  ]
}

import babel from 'rollup-plugin-babel'

export default {
  input: './src/index.js',
  output: {
    format: 'cjs',
    file: 'dist/rollup-plugin-sass.js'
  },
  external: [
    'babel-runtime/regenerator',
    'babel-runtime/core-js/json/stringify',
    'babel-runtime/core-js/object/assign',
    'babel-runtime/core-js/object/keys',
    'babel-runtime/helpers/asyncToGenerator',
    'babel-runtime/helpers/toConsumableArray',
    'babel-runtime/helpers/typeof',
    'path',
    'fs',
    'resolve',
    'pify',
    'node-sass',
    'util',
    'rollup-pluginutils',
    'fs-extra'
  ],
  plugins: [
    babel({
      exclude: './node_modules/**',
      runtimeHelpers: true
    })
  ]
}

Update rollup.config.js