Spaces:
Running
Running
File size: 596 Bytes
d4b85c0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import pkg from './package.json';
const input = "./src/main.mjs";
export default [
// browser-friendly UMD build
{
input,
output: {
name: 'textlinestream',
file: pkg.browser,
format: 'umd'
},
plugins: [
resolve({browser: true}),
commonjs()
]
},
{
input,
output: { file: pkg.module, format: 'es' },
plugins: [
resolve({
browser: true
}),
commonjs()
]
},
{
input,
output: { file: pkg.main, format: 'cjs', exports: "default" }
}
]; |