const rollup = require('rollup').rollup;
const babel = require('rollup-plugin-babel');

rollup({
    entry: './src/index.js',
    external: [
        'babel-runtime/core-js/json/stringify',
        'babel-runtime/core-js/object/assign',
        'babel-runtime/helpers/asyncToGenerator',
        'babel-runtime/regenerator',
        'fs',
        'util',
        'path',
        'node-sass',
        'rollup-pluginutils'
    ],
    plugins: [
        babel({
            runtimeHelpers: true
        })
    ]
}).then((bundle) => {
    bundle.write({
        dest: 'dist/rollup-plugin-sass.cjs.js',
        format: 'cjs'
    });
    bundle.write({
        dest: 'dist/rollup-plugin-sass.es6.js',
        format: 'es6'
    });
}).catch(console.error);
const rollup = require('rollup').rollup;
const babel = require('rollup-plugin-babel');

rollup({
    entry: './src/index.js',
    external: [
        'babel-runtime/core-js/json/stringify',
        'babel-runtime/core-js/object/assign',
        'babel-runtime/helpers/asyncToGenerator',
        'babel-runtime/regenerator',
        'fs',
        'util',
        'path',
        'node-sass',
        'rollup-pluginutils'
    ],
    plugins: [
        babel({
            runtimeHelpers: true
        })
    ]
}).then(function (bundle) {
    bundle.write({
        dest: 'dist/rollup-plugin-sass.cjs.js',
        format: 'cjs'
    });
    bundle.write({
        dest: 'dist/rollup-plugin-sass.es6.js',
        format: 'es6'
    });
}).catch(console.error);

Remove arrow func compatible with old version node
Remove arrow func compatible with old version node
