text: import typescript from 'rollup-plugin-typescript2'
  import pkg from './package.json'
  import {terser} from 'rollup-plugin-terser';
  
  export default {
      input: 'src/index.ts',
      output: [
        {
          file: 'build/biomsa.js',
          format: 'umd',
          name: 'biomsa',
          sourcemap: true
        },
        {
          file: 'build/biomsa.esm.js',
          format: 'es',
          sourcemap: true
        },
      ],
      external: [
        ...Object.keys(pkg.dependencies || {}),
        ...Object.keys(pkg.peerDependencies || {}),
      ],plugins: [
          typescript({
            typescript: require('typescript'),
          }),
          (process.env.NODE_ENV === 'production'
            && terser({
              format: {comments: false}
            })
          )
        ],
  }