UNPKG

1.25 kBJavaScriptView Raw
1import buble from '@rollup/plugin-buble';
2
3export default [
4 {
5 input: "src/codemirror.js",
6 output: {
7 banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
8// Distributed under an MIT license: https://codemirror.net/LICENSE
9
10// This is CodeMirror (https://codemirror.net), a code editor
11// implemented in JavaScript on top of the browser's DOM.
12//
13// You can find some technical background for some of the code below
14// at http://marijnhaverbeke.nl/blog/#cm-internals .
15`,
16 format: "umd",
17 file: "lib/codemirror.js",
18 name: "CodeMirror"
19 },
20 plugins: [ buble({namedFunctionExpressions: false}) ]
21 },
22 {
23 input: ["src/addon/runmode/runmode-standalone.js"],
24 output: {
25 format: "iife",
26 file: "addon/runmode/runmode-standalone.js",
27 name: "CodeMirror",
28 freeze: false, // IE8 doesn't support Object.freeze.
29 },
30 plugins: [ buble({namedFunctionExpressions: false}) ]
31 },
32 {
33 input: ["src/addon/runmode/runmode.node.js"],
34 output: {
35 format: "cjs",
36 file: "addon/runmode/runmode.node.js",
37 name: "CodeMirror",
38 freeze: false, // IE8 doesn't support Object.freeze.
39 },
40 plugins: [ buble({namedFunctionExpressions: false}) ]
41 },
42];