text: import { terser } from "rollup-plugin-terser";
  import resolve from 'rollup-plugin-node-resolve';
  import commonJS from 'rollup-plugin-commonjs';
  
  let plugin = require('../package.json');
  
  let input = "src/index.js";
  let output = {
    file: "dist/" + plugin.name + "-src.js",
    format: "umd",
    sourcemap: true,
    name: plugin.name,
    globals: {
      'jszip': 'JSZip',
      'geojson-vt': 'geojsonvt',
      '@tmcw/togeojson': 'toGeoJSON',
    }
  };
  
  let external = ['jszip', 'geojson-vt', '@tmcw/togeojson', 'leaflet-pointable'];
  let plugins = [
    resolve(),
    commonJS({
      include: '../node_modules/**'
    })
  ];
  
  export default [{
      input: input,
      output: output,
      plugins: plugins,
      external: external,
    },
    {
      input: input,
      output: Object.assign({}, output, {
        file: "dist/" + plugin.name + ".js"
      }),
      plugins: plugins.concat(terser()),
      external: external
    }
  ];
  