text: import replace from '@rollup/plugin-replace';
  import strip from '@rollup/plugin-strip';
  import filesize from 'rollup-plugin-filesize';
  import { terser } from 'rollup-plugin-terser';
  import visualizer from 'rollup-plugin-visualizer';
  
  import pkg from './package.json';
  import config from './rollup.config.common';
  
  const { plugins, banner } = config();
  
  export default [
    {
      input: 'src/index.ts',
      output: [
        {
          file: pkg.module,
          format: 'es',
          banner,
        },
        {
          name: pkg.name,
          file: pkg.main,
          format: 'umd',
          banner,
        },
        {
          name: pkg.name,
          file: pkg.browser,
          format: 'umd',
          banner,
          plugins: [terser()],
        },
      ],
      plugins: [
        strip({
          debugger: true,
          include: ['**/*.ts', '**/*.tsx'],
          functions: ['Logger.debug', 'Logger.log', 'console.log'],
        }),
        replace({
          preventAssignment: true,
          'process.env.NODE_ENV': JSON.stringify('production'),
        }),
        ...plugins,
        visualizer({
          filename: './dist/stats.html',
        }),
        filesize({
          showBrotliSize: true,
        }),
      ],
      external: ['vuerd'],
    },
  ];
  