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