-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.fatherrc.ts
53 lines (52 loc) · 1015 Bytes
/
.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
import { defineConfig } from 'father'
export default defineConfig({
cjs: {
output: 'lib',
platform: 'browser',
transformer: 'babel',
},
esm: {
output: 'es',
platform: 'browser',
transformer: 'babel',
},
extraBabelPlugins: [
'react-node-key/babel',
[
'babel-plugin-import',
{
libraryName: '@fexd/tools',
camel2DashComponentName: false,
libraryDirectory: 'es',
},
'@fexd/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',
],
],
})