-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.fatherrc.ts
60 lines (60 loc) · 1.13 KB
/
.fatherrc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
export default {
pkgs: ['provider', 'utils', 'form', 'table', 'components'],
cjs: {
type: 'babel',
minify: true,
lazy: true,
},
esm: {
type: 'babel',
},
runtimeHelpers: true,
extraBabelPlugins: [
'react-node-key/babel',
[
'babel-plugin-import',
{
libraryName: '@cjy0208/tools',
camel2DashComponentName: false,
libraryDirectory: 'es',
},
'@cjy0208/tools',
],
[
'babel-plugin-import',
{
libraryName: 'antd',
libraryDirectory: 'es',
style: false,
},
'antd',
],
[
'babel-plugin-import',
{
libraryName: '@ant-design/icons',
camel2DashComponentName: false,
libraryDirectory: '',
},
'@ant-design/icons',
],
[
'babel-plugin-import',
{
libraryName: 'ahooks',
libraryDirectory: 'es',
camel2DashComponentName: false,
},
'ahooks',
],
],
extraExternals: [
'react',
'react-dom',
/^@cjy0208\/tools/,
/^@ant-design\/icons/,
'hoist-non-react-statics',
'antd',
/^@babel\/runtime/,
],
}