rollup.config.js 610 B

123456789101112131415161718
  1. import buble from 'rollup-plugin-buble';
  2. export default {
  3. banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
  4. // Distributed under an MIT license: https://codemirror.net/LICENSE
  5. // This is CodeMirror (https://codemirror.net), a code editor
  6. // implemented in JavaScript on top of the browser's DOM.
  7. //
  8. // You can find some technical background for some of the code below
  9. // at http://marijnhaverbeke.nl/blog/#cm-internals .
  10. `,
  11. entry: "src/codemirror.js",
  12. format: "umd",
  13. dest: "lib/codemirror.js",
  14. moduleName: "CodeMirror",
  15. plugins: [ buble({namedFunctionExpressions: false}) ]
  16. };