text: import buble from 'rollup-plugin-buble'
  import cleanup from 'rollup-plugin-cleanup'
  import clear from 'rollup-plugin-clear'
  import commonjs from 'rollup-plugin-commonjs'
  import resolve from 'rollup-plugin-node-resolve'
  import pkg from './package.json'
  
  const banner =
    `/**
   * Vue Currency Input ${pkg.version}
   * (c) ${new Date().getFullYear()} ${pkg.author}
   * @license ${pkg.license}
   */`
  
  export default [
    {
      input: 'src/index.esm.js',
      output: {
        format: 'esm',
        file: pkg.module,
        exports: 'named',
        banner
      },
      plugins: [
        clear({
          targets: ['./dist']
        }),
        commonjs(),
        buble({
          objectAssign: true
        }),
        cleanup()
      ],
      external: ['vue']
    },
    {
      input: 'src/index.umd.js',
      output: {
        name: 'VueCurrencyInput',
        format: 'umd',
        exports: 'named',
        file: pkg.main,
        globals: {
          vue: 'Vue'
        },
        banner
      },
      plugins: [
        commonjs(),
        resolve(),
        buble({
          objectAssign: true
        }),
        cleanup()
      ],
      external: ['vue']
    }
  ]
  