fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
const babel = require("@rollup/plugin-babel");
|
|
|
|
const alias = require("@rollup/plugin-alias");
|
|
|
|
const resolve = require("@rollup/plugin-node-resolve");
|
|
|
|
const commonjs = require("@rollup/plugin-commonjs");
|
|
|
|
const path = require("path");
|
|
|
|
|
|
|
|
/**
|
|
|
|
* todo: 删除根目录下的 babel.config.js,然后移入到这个文件
|
|
|
|
*/
|
|
|
|
|
|
|
|
const input = "src/index.js";
|
|
|
|
|
|
|
|
module.exports = [
|
|
|
|
{
|
|
|
|
input,
|
|
|
|
output: [
|
|
|
|
{
|
|
|
|
file: "dist/fineui.esm.js",
|
|
|
|
format: "esm",
|
|
|
|
sourcemap: true,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
alias({
|
|
|
|
entries: [
|
|
|
|
{ find: "@", replacement: path.resolve(__dirname, "src") },
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
resolve(),
|
|
|
|
babel({
|
|
|
|
babelHelpers: "inline",
|
|
|
|
plugins: [
|
|
|
|
["@babel/plugin-proposal-decorators", { legacy: true }],
|
|
|
|
],
|
|
|
|
}),
|
|
|
|
commonjs(),
|
|
|
|
],
|
|
|
|
},
|
|
|
|
];
|