2020-06-10 16:42:41 +02:00
|
|
|
import buble from '@rollup/plugin-buble'
|
2025-10-21 18:33:12 +03:00
|
|
|
import pkg from "./package.json" with { type: "json" };
|
2018-11-04 14:32:14 -07:00
|
|
|
|
|
|
|
|
const output = {
|
|
|
|
|
format: 'umd',
|
2025-10-21 18:33:12 +03:00
|
|
|
file: "dist/split.js",
|
2018-11-04 14:32:14 -07:00
|
|
|
name: 'Split',
|
|
|
|
|
sourcemap: false,
|
2025-10-21 18:33:12 +03:00
|
|
|
banner: `/*! Split.js - v${pkg.version} */\n`
|
2018-11-04 14:32:14 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default [
|
|
|
|
|
{
|
|
|
|
|
input: 'src/split.js',
|
2018-11-07 10:08:06 -07:00
|
|
|
output: [
|
|
|
|
|
output,
|
|
|
|
|
{
|
2025-10-21 18:33:12 +03:00
|
|
|
file: "dist/split.min.js",
|
2018-11-07 10:08:06 -07:00
|
|
|
format: 'esm',
|
|
|
|
|
sourcemap: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
2018-11-04 14:32:14 -07:00
|
|
|
plugins: [buble()],
|
2025-10-21 19:14:31 +03:00
|
|
|
}
|
2018-11-04 14:32:14 -07:00
|
|
|
]
|