1 Star 0 Fork 0

MoisAbby / pro-components

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.fatherrc.ts 621 Bytes
一键复制 编辑 原始数据 按行查看 历史
import { readdirSync } from 'fs';
import { join } from 'path';
// utils must build before core
// runtime must build before renderer-react
const headPkgs: string[] = ['provider', 'utils', 'field', 'skeleton'];
const tailPkgs = readdirSync(join(__dirname, 'packages')).filter(
(pkg) => pkg.charAt(0) !== '.' && !headPkgs.includes(pkg),
);
export default {
cjs: { type: 'babel', lazy: true },
esm: {
type: 'babel',
importLibToEs: true,
},
pkgs: [...headPkgs, ...tailPkgs],
extraBabelPlugins: [
['babel-plugin-import', { libraryName: 'antd', libraryDirectory: 'es', style: true }, 'antd'],
],
};
1
https://gitee.com/MoisAbby/pro-components.git
git@gitee.com:MoisAbby/pro-components.git
MoisAbby
pro-components
pro-components
master

搜索帮助