const typescript = require('rollup-plugin-typescript2');

module.exports = {
  input: 'src/index.ts',
  output: [
    {
      file: 'dist/plugin.js',
      format: 'cjs',
      sourcemap: true
    },
    {
      file: 'dist/esm/index.js',
      format: 'es',
      sourcemap: true
    }
  ],
  external: ['@capacitor/core'],
  plugins: [
    typescript({
      tsconfig: './tsconfig.json',
      clean: true
    })
  ]
}; 