blob: 520ca871646b42c6e1192be55542adf682354020 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* eslint-disable import/no-unresolved */
import terser from "@rollup/plugin-terser";
import nodeResolve from "@rollup/plugin-node-resolve";
export default function (commandLineArgs) {
const plugins = [nodeResolve()];
if (commandLineArgs.minified) {
plugins.push(terser());
}
return {
input: "codemirror6/index.mjs",
output: {
file: "codemirror6/codemirror6.bundle.js",
format: "iife",
name: "CodeMirror",
},
plugins,
};
}
|