text: import resolve from 'rollup-plugin-node-resolve'
  import commonjs from 'rollup-plugin-commonjs'
  import pkg from './package.json'
  import babel from 'rollup-plugin-babel'
  
  export default [
    {
      input: 'src/main.js',
      output: {
        name: 'index',
        file: pkg.browser,
        format: 'umd',
      },
      plugins: [
        resolve(),
        commonjs(),
        babel({
          exclude: 'node_modules/**',
        }),
      ],
    },
    {
      input: 'src/main.js',
      external: [],
      output: [
        { file: pkg.main, format: 'cjs' },
        { file: pkg.module, format: 'es' },
      ],
    },
  ]
  