text: // Rollup plugins
  import babel from '../../../node_modules/rollup-plugin-babel/dist/rollup-plugin-babel.es.js';
  import eslint from 'rollup-plugin-eslint';
  import resolve from '../../../node_modules/rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es.js';
  import commonjs from '../../../node_modules/rollup-plugin-commonjs/dist/rollup-plugin-commonjs.es.js';
  import replace from '../../../node_modules/rollup-plugin-replace/dist/rollup-plugin-replace.es.js';
  import json from '../../../node_modules/rollup-plugin-json/dist/rollup-plugin-json.es.js';
  import uglify from 'rollup-plugin-uglify-es';
  
  export default config => {
    return {
      input: config.output.format === 'iife' ? 'src/browser.js' : 'src/index.js',
      output: {
        format: config.output.format,
        file: config.output.file,
        name: config.output.format === 'iife' ? 'window' : 'nlmapsL',
        extend: config.output.format === 'iife' ? true : false,
        sourcemap:true
      },
      external: config.external,
      plugins: [
        commonjs(),
        resolve({
          jsnext: true,
          main: true,
          browser: true
        }),
        eslint({
         // include: [
         //   '../lib/**'
         // ],
          exclude: [
            '../lib/**',
            'node_modules/**',
            '../../../node_modules/**',
            '../../node_modules/**'
  
          ],
          throwOnError: true
        }),
        json(),
        babel({
          exclude: 'node_modules/**',
          babelrc: false,
          presets: [['env',{modules:false}]],
          plugins: [
            "external-helpers"
          ]
        }),
        replace({
          ENV: JSON.stringify(process.env.NODE_ENV || 'development'),
          'process.browser': JSON.stringify(!!process.env.BROWSER)
        }),
        (process.env.NODE_ENV === 'production' && uglify())
      ]
    }
  }
  