text: import { babel } from '@rollup/plugin-babel';
  import commonjs from '@rollup/plugin-commonjs';
  import resolve from '@rollup/plugin-node-resolve';
  import { terser } from 'rollup-plugin-terser';
  
  const production = !process.env.ROLLUP_WATCH;
  
  export default 
  {
      input: 'src/index.js',
      output: {
          file: 'build/bundle.js',
          format: 'iife'
      },
      plugins: [
          resolve(),
          commonjs(),
          babel({ babelHelpers: 'bundled'}),
          production && terser({ output: { comments: false } })
      ]
  };