1
0
Fork 0

feat(snapseries): Initial release

This commit is contained in:
joostdecock 2021-09-28 19:28:11 +02:00
parent 10c764d7fe
commit 969d5ecf9f
9 changed files with 253 additions and 0 deletions

View file

@ -0,0 +1,29 @@
import resolve from '@rollup/plugin-node-resolve'
import commonjs from '@rollup/plugin-commonjs'
import json from '@rollup/plugin-json'
import peerDepsExternal from 'rollup-plugin-peer-deps-external'
import { name, version, description, author, license, main, module, rollup } from './package.json'
const banner = `/**\n * ${name} | v${version}\n * ${description}\n * (c) ${new Date().getFullYear()} ${author}\n * @license ${license}\n */`
const output = [
{
banner,
file: main,
format: 'cjs',
sourcemap: true,
exports: rollup.exports,
},
]
if (typeof module !== 'undefined')
output.push({
banner,
file: module,
format: 'es',
sourcemap: true,
})
export default {
input: 'src/index.js',
output,
plugins: [peerDepsExternal(), resolve({ modulesOnly: true }), commonjs(), json()],
}