32 Star 159 Fork 1

Gitee 极速下载 / CodeMirror

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: http://github.com/marijnh/CodeMirror.git
克隆/下载
rollup.config.js 1.41 KB
一键复制 编辑 原始数据 按行查看 历史
import buble from '@rollup/plugin-buble';
import copy from 'rollup-plugin-copy'
let copyVim = copy({
targets: [
{
src: require.resolve("cm5-vim/vim.js").replace(/\\/g, "/"),
dest: "./keymap"
}
]
});
export default [
{
input: "src/codemirror.js",
output: {
banner: `// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: https://codemirror.net/5/LICENSE
// This is CodeMirror (https://codemirror.net/5), 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}), copyVim ]
},
{
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}) ]
},
];
JavaScript
1
https://gitee.com/mirrors/CodeMirror.git
git@gitee.com:mirrors/CodeMirror.git
mirrors
CodeMirror
CodeMirror
master

搜索帮助