// See: https://rollupjs.org/introduction/

import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import nodeResolve from '@rollup/plugin-node-resolve'
import typescript from '@rollup/plugin-typescript'

const config = {
  input: 'src/cleanup.ts',
  output: {
    esModule: true,
    file: 'dist/cleanup.js',
    format: 'es',
    sourcemap: false
  },
  plugins: [typescript(), nodeResolve({ preferBuiltins: true }), commonjs(), json()]
}

export default config
