import { terser } from 'rollup-plugin-terser'
import { eslint } from 'rollup-plugin-eslint'
import babel from 'rollup-plugin-babel'
import json from 'rollup-plugin-json'
import filesize from 'rollup-plugin-filesize'

const pkg = require('./package.json')

// dev build if watching, prod build if not
const isProduction = !process.env.ROLLUP_WATCH

export default {
  input: 'src/index.js',
  output: [
    {
      file: pkg.main,
      format: 'umd',
      name: 'MicroModal'
    },
    {
      file: pkg.cdn,
      format: 'umd',
      name: 'MicroModal'
    },
    {
      file: pkg.module,
      format: 'es'
    }
  ],
  plugins: [
    eslint({ exclude: 'package.json' }),
    json(),
    babel({ exclude: 'node_modules/**' }),
    isProduction && terser({ include: [/^.+\.min\.js$/] }),
    isProduction && filesize()
  ]
}

@@ -756,38 +756,8 @@
 ser(
-%7B include: %5B/%5E.+%5C.min%5C.js$/%5D %7D
 ),%0A 

Update rollup.config.js