marked/rollup.config.js

32 lines
672 B
JavaScript
Raw Normal View History

2019-11-06 11:11:06 -06:00
const commonjs = require('rollup-plugin-commonjs');
const babel = require('rollup-plugin-babel');
2019-11-06 11:54:31 -06:00
const license = require('rollup-plugin-license');
2019-11-06 11:11:06 -06:00
2019-11-05 15:30:38 -06:00
module.exports = {
input: 'src/marked.js',
output: {
file: 'lib/marked.js',
format: 'umd',
name: 'marked'
},
2019-11-06 11:11:06 -06:00
plugins: [
2019-11-06 11:54:31 -06:00
license({
banner: `
DO NOT EDIT THIS FILE
The code in this file is generated from files in ./src/
2019-11-06 16:12:58 -06:00
`
}),
license({
banner: `
2019-11-06 11:54:31 -06:00
marked - a markdown parser
2019-11-11 11:38:04 -06:00
Copyright (c) 2011-${new Date().getFullYear()}, Christopher Jeffrey. (MIT Licensed)
2019-11-06 11:54:31 -06:00
https://github.com/markedjs/marked
`
}),
2019-11-06 11:11:06 -06:00
commonjs(),
babel({
presets: ['@babel/preset-env']
})
]
2019-11-05 15:30:38 -06:00
};