import { nodeResolve } from '@rollup/plugin-node-resolve';
import terser from '@rollup/plugin-terser';
import { execSync } from 'child_process';

// No longer needed - insertr.js served via CDN endpoint

export default [
  // Development build
  {
    input: 'src/index.js',
    output: {
      file: 'dist/insertr.js',
      format: 'iife',
      name: 'Insertr'
    },
    plugins: [
      nodeResolve()
    ]
  },
  // Production build (minified)
  {
    input: 'src/index.js',
    output: {
      file: 'dist/insertr.min.js',
      format: 'iife',
      name: 'Insertr'
    },
    plugins: [
      nodeResolve(),
      terser()
    ]
  }
];