text: import typescript from 'rollup-plugin-typescript2';
  import { terser } from 'rollup-plugin-terser';
  import progress from 'rollup-plugin-progress';
  import { nodeResolve } from '@rollup/plugin-node-resolve';
  import commonjs from '@rollup/plugin-commonjs';
  import json from '@rollup/plugin-json';
  
  export default [
    {
      input: `${__dirname}/src/index.ts`,
      output: {
        file: `${__dirname}/lib/index.js`,
        format: 'cjs',
        name: 'useTimeout',
        sourcemap: true,
        exports: 'named',
      },
      external: ['react'],
      plugins: [
        terser(),
        progress(),
        typescript(),
        commonjs(),
        json(),
        nodeResolve(),
      ],
    },
  ];
  