mirror of
https://github.com/slidevjs/rough-notation.git
synced 2026-01-26 23:10:26 +01:00
.
This commit is contained in:
32
rollup.config.js
Normal file
32
rollup.config.js
Normal 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()]
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user