marked/rollup.config.js
dependabot[bot] fdbbec699f
chore(deps-dev): Bump rollup from 2.79.1 to 3.2.5 (#2646)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony Brix <tony@brix.ninja>
2022-11-10 19:46:16 -06:00

51 lines
883 B
JavaScript

import babel from '@rollup/plugin-babel';
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
}
},
{
input: 'src/marked.js',
output: {
file: 'lib/marked.umd.js',
format: 'umd',
name: 'marked',
banner
},
plugins: [
babel({
presets: [['@babel/preset-env', { loose: true }]]
})
]
},
{
input: 'src/marked.js',
output: {
file: 'lib/marked.cjs',
format: 'cjs',
name: 'marked',
banner
},
plugins: [
babel({
presets: [['@babel/preset-env', { loose: true }]]
})
]
}];