2022-11-10 19:46:16 -06:00
|
|
|
import babel from '@rollup/plugin-babel';
|
2019-11-06 11:11:06 -06:00
|
|
|
|
2022-11-10 19:46:16 -06:00
|
|
|
const banner = `/**
|
|
|
|
* marked - a markdown parser
|
|
|
|
* Copyright (c) 2011-${new Date().getFullYear()}, Christopher Jeffrey. (MIT Licensed)
|
|
|
|
* https://github.com/markedjs/marked
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* DO NOT EDIT THIS FILE
|
|
|
|
* The code in this file is generated from files in ./src/
|
|
|
|
*/
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default [{
|
|
|
|
input: 'src/marked.js',
|
|
|
|
output: {
|
|
|
|
file: 'lib/marked.esm.js',
|
|
|
|
format: 'esm',
|
|
|
|
banner
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
2019-11-05 15:30:38 -06:00
|
|
|
input: 'src/marked.js',
|
|
|
|
output: {
|
2021-11-12 13:38:04 -08:00
|
|
|
file: 'lib/marked.umd.js',
|
2019-11-05 15:30:38 -06:00
|
|
|
format: 'umd',
|
2022-11-10 19:46:16 -06:00
|
|
|
name: 'marked',
|
|
|
|
banner
|
2019-11-05 15:30:38 -06:00
|
|
|
},
|
2019-11-06 11:11:06 -06:00
|
|
|
plugins: [
|
|
|
|
babel({
|
2019-12-04 17:29:13 +01:00
|
|
|
presets: [['@babel/preset-env', { loose: true }]]
|
2019-11-06 11:11:06 -06:00
|
|
|
})
|
|
|
|
]
|
2021-11-12 13:38:04 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
input: 'src/marked.js',
|
|
|
|
output: {
|
|
|
|
file: 'lib/marked.cjs',
|
|
|
|
format: 'cjs',
|
2022-11-10 19:46:16 -06:00
|
|
|
name: 'marked',
|
|
|
|
banner
|
2021-11-12 13:38:04 -08:00
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
babel({
|
|
|
|
presets: [['@babel/preset-env', { loose: true }]]
|
|
|
|
})
|
|
|
|
]
|
|
|
|
}];
|