wordpress-theme-openmamba/scripts/codemirror/rollup.config.js

43 lines
1.2 KiB
JavaScript
Raw Permalink Normal View History

2020-10-02 13:05:50 +02:00
import buble from '@rollup/plugin-buble';
2019-07-28 14:57:52 +02:00
2020-10-02 13:05:50 +02:00
export default [
{
input: "src/codemirror.js",
output: {
banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
2019-07-28 14:57:52 +02:00
// 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 .
`,
2020-10-02 13:05:50 +02:00
format: "umd",
file: "lib/codemirror.js",
name: "CodeMirror"
},
plugins: [ buble({namedFunctionExpressions: false}) ]
2019-07-28 14:57:52 +02:00
},
2020-10-02 13:05:50 +02:00
{
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}) ]
},
];