text: import typescript from '@rollup/plugin-typescript';
  import { terser } from 'rollup-plugin-terser';
  import pkg from './package.json';
  
  export default {
    input: 'src/index.ts',
    output: [
      { file: pkg.main, format: 'cjs', sourcemap: true },
      { file: pkg.module, format: 'es', sourcemap: true },
    ],
    plugins: [typescript({ tsconfig: './tsconfig.json', declarationDir: './' }), terser()],
  };
  