text: import babel from 'rollup-plugin-babel';
  import typescript from 'rollup-plugin-typescript2';
  
  import pkg from './package.json';
  
  export default [
    {
      input: 'src/index.ts',
      external: ['three'],
      plugins: [
        typescript({
          clean: true,
        }),
        babel({
          exclude: 'node_modules/**',
        }),
      ],
      output: [
        {
          exports: 'named',
          file: pkg.main,
          format: 'cjs',
        },
        {
          file: pkg.module,
          format: 'esm',
        },
      ],
    },
  ];
  