text: import svelte from 'rollup-plugin-svelte';
  import resolve from '@rollup/plugin-node-resolve';
  import commonjs from '@rollup/plugin-commonjs';
  import { terser } from 'rollup-plugin-terser';
  
  const plugins = [resolve(), commonjs(), svelte()];
  
  if (process.env.production) {
    plugins.push(terser());
  }
  
  export default {
    input: 'src/main.js',
    output: {
      file: 'dist/main.js',
      format: 'iife',
      name: 'main'
    },
    plugins
  };
  