代码拉取完成,页面将自动刷新
import resolve from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import babel from '@rollup/plugin-babel';
import cleanup from 'rollup-plugin-cleanup';
const extensions = [
'.ts'
];
function ON_WARN(warning, rollupWarn) {
if (warning.code === 'CIRCULAR_DEPENDENCY') {
warning.cycle.forEach((c) => {
if (c.endsWith("index.ts")) {
throw new Error(warning.message)
}
})
console.log(warning.message)
}
}
// package list is stored in package.json
const packages = require("./package.json").packages
// as are names for the packages.
const packageNames = require("./package.json").packageNames
const out = []
out.push({
input: `./ts/index.ts`,
output: [
{
name: "jsPlumb",
file: `dist/browser-ui/js/jsplumb.browser-ui.cjs.js`,
format: 'cjs'
},
{
name: "jsPlumb",
file: `dist/browser-ui/js/jsplumb.browser-ui.es.js`,
format: 'es'
},
{
name: "jsPlumb",
file: `dist/browser-ui/js/jsplumb.browser-ui.umd.js`,
format: 'umd'
}
],
plugins: [
resolve({ extensions }),
commonjs(),
babel({ extensions, include: [`ts/**/*`], babelHelpers:"bundled" }),
cleanup({ extensions:['ts', 'js']})
],
onwarn:ON_WARN
})
export default out
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。