text: import typescript from 'rollup-plugin-typescript2';
  import postcss from 'rollup-plugin-postcss';
  import commonjs from '@rollup/plugin-commonjs';
  import resolve from '@rollup/plugin-node-resolve';
  
  import pkg from './package.json';
  
  export default {
    input: 'immutability-helper-extension.ts',
    output: [
      {
        file: pkg.browser,
        format: 'umd',
        name: 'immutability-helper-extension',
        exports: 'named',
        sourcemap: true,
      },
      {
        file: pkg.main,
        format: 'es',
        exports: 'named',
        sourcemap: true,
      },
    ],
    plugins: [
      resolve({
        browser: true,
      }),
      typescript({
        rollupCommonJSResolveHack: true,
        exclude: '**/__tests__/**',
        clean: true,
      }),
      commonjs({
        include: ['node_modules/**'],
      }),
      postcss({
        modules: true,
      }),
    ],
  };
  