import { addSideEffect } from '@babel/helper-module-imports';

const IMPORT = 'source-map-support/register';

function babelPluginSourceMapSupport () {
    return {
        visitor: {
            Program (path) {
                addSideEffect(path, IMPORT);
            }
        }
    }
}

export { babelPluginSourceMapSupport as default };
