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: `
|
2019-11-06 15:56:29 -06:00
|
|
|
DO NOT EDIT THIS FILE
|
|
|
|
The code in this file is generated from files in ./src/
|
2019-11-06 16:12:58 -06:00
|
|
|
`
|
2019-11-06 15:56:29 -06:00
|
|
|
}),
|
|
|
|
license({
|
|
|
|
banner: `
|
2019-11-06 11:54:31 -06:00
|
|
|
marked - a markdown parser
|
|
|
|
Copyright (c) 2011-2018, Christopher Jeffrey. (MIT Licensed)
|
|
|
|
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
|
|
|
};
|