rollup.config.esm.js 554 B

1234567891011121314151617181920212223242526
  1. const commonjs = require('@rollup/plugin-commonjs');
  2. const license = require('rollup-plugin-license');
  3. module.exports = {
  4. input: 'src/marked.js',
  5. output: {
  6. file: 'lib/marked.esm.js',
  7. format: 'esm'
  8. },
  9. plugins: [
  10. license({
  11. banner: `
  12. DO NOT EDIT THIS FILE
  13. The code in this file is generated from files in ./src/
  14. `
  15. }),
  16. license({
  17. banner: `
  18. marked - a markdown parser
  19. Copyright (c) 2011-${new Date().getFullYear()}, Christopher Jeffrey. (MIT Licensed)
  20. https://github.com/markedjs/marked
  21. `
  22. }),
  23. commonjs()
  24. ]
  25. };