This commit is contained in:
Preet Shihn
2020-05-26 20:50:15 -07:00
parent 4cd901716f
commit 13a375bf78
8 changed files with 506 additions and 6 deletions

32
rollup.config.js Normal file
View File

@@ -0,0 +1,32 @@
import resolve from 'rollup-plugin-node-resolve';
import { terser } from "rollup-plugin-terser";
const input = 'lib/rough-notation.js';
export default [
{
input,
output: {
file: 'lib/rough-notation.iife.js',
format: 'iife',
name: 'RoughNotation'
},
plugins: [resolve(), terser()]
},
{
input,
output: {
file: 'lib/rough-notation.esm.js',
format: 'esm'
},
plugins: [resolve(), terser()]
},
{
input,
output: {
file: 'lib/rough-notation.cjs.js',
format: 'cjs'
},
plugins: [resolve(), terser()]
},
];