import buble from '@rollup/plugin-buble' import { terser } from 'rollup-plugin-terser' import pkg from "./package.json" with { type: "json" }; const output = { format: 'umd', file: "dist/split.js", name: 'Split', sourcemap: false, banner: `/*! Split.js - v${pkg.version} */\n` } export default [ { input: 'src/split.js', output: [ output, { file: "dist/split.min.js", format: 'esm', sourcemap: false, }, ], plugins: [buble()], }, { input: 'src/split.js', output: { ...output, sourcemap: true, file: "dist/split.min.js", }, plugins: [buble(), terser()], }, ]