import {terser} from 'rollup-plugin-terser';
import resolve from 'rollup-plugin-node-resolve';
import buble from 'rollup-plugin-buble';

const output = (file, plugins) => ({
    input: 'index.js',
    output: {
        name: 'rbush',
        format: 'umd',
        indent: false,
        file
    },
    plugins
});

export default [
    output('rbush.js', [resolve(), buble()]),
    output('rbush.min.js', [resolve(), buble(), terser()])
];

import {terser} from 'rollup-plugin-terser';
import resolve from 'rollup-plugin-node-resolve';
import buble from 'rollup-plugin-buble';

const output = (file, plugins) => ({
    input: 'index.js',
    output: {
        name: 'RBush',
        format: 'umd',
        indent: false,
        file
    },
    plugins
});

export default [
    output('rbush.js', [resolve(), buble()]),
    output('rbush.min.js', [resolve(), buble(), terser()])
];

update exported UMD name to RBush