1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* eslint-disable import/no-unresolved */
6 import terser from "@rollup/plugin-terser";
7 import nodeResolve from "@rollup/plugin-node-resolve";
9 export default function (commandLineArgs) {
10 const plugins = [nodeResolve()];
11 if (commandLineArgs.minified) {
12 plugins.push(terser());
16 input: "codemirror6/index.mjs",
18 file: "codemirror6/codemirror6.bundle.mjs",