2021-01-08 22:17:25 +05:30
|
|
|
const commonjs = require('@rollup/plugin-commonjs');
|
|
|
|
const babel = require('@rollup/plugin-babel').default;
|
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',
|
2021-10-06 14:55:49 -07:00
|
|
|
name: 'marked',
|
|
|
|
esModule: false
|
2019-11-05 15:30:38 -06:00
|
|
|
},
|
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
|
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({
|
2019-12-04 17:29:13 +01:00
|
|
|
presets: [['@babel/preset-env', { loose: true }]]
|
2019-11-06 11:11:06 -06:00
|
|
|
})
|
|
|
|
]
|
2019-11-05 15:30:38 -06:00
|
|
|
};
|