text: import * as path from 'path'
  import typescript from '@rollup/plugin-typescript'
  import autoExternal from 'rollup-plugin-auto-external'
  
  const base = path.resolve(__dirname)
  const tsconfig = path.join(base, 'tsconfig.json')
  
  export default {
    input: 'src/index.ts',
    output: [
      {
        dir: 'dist',
        entryFileNames: '[name].js',
        format: 'cjs',
        sourcemap: true,
        exports: 'named',
      },
      {
        dir: 'dist',
        entryFileNames: '[name].module.js',
        format: 'es',
        sourcemap: true,
      },
    ],
    context: 'this',
    plugins: [
      autoExternal({
        builtins: false,
        packagePath: './package.json',
      }),
      typescript({
        tsconfig,
        include: ['./src/**/*.ts'],
        module: 'ESNext',
      }),
    ],
  }
  