text: import typescript from '@rollup/plugin-typescript';
  import commonjs from '@rollup/plugin-commonjs';
  import externals from 'rollup-plugin-node-externals';
  import dts from 'rollup-plugin-dts';
  
  export default [
    {
      plugins: [
        typescript(),
        externals({
          deps: true,
        }),
        commonjs(),
      ],
      input: './src/index.ts',
      output: [
        {
          file: './lib/index.cjs',
          format: 'cjs',
        },
      ],
    },
    {
      plugins: [
        typescript(),
        externals({
          deps: true,
        }),
      ],
      input: './src/index.ts',
      output: [
        {
          file: './lib/index.mjs',
          format: 'es',
        },
      ],
    },
    {
      plugins: [
        typescript(),
        dts({
          compilerOptions: {
            removeComments: false,
          },
        }),
        externals({
          deps: true,
        }),
      ],
      input: './src/index.ts',
      output: {
        file: './lib/index.d.ts',
        format: 'es',
      },
    },
  ]