Skip to content

Commit 1c4678b

Browse files
authored
fix: father export bug (#155)
1 parent e64aa93 commit 1c4678b

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

.fatherrc.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
import { defineConfig } from 'father';
22

33
export default defineConfig({
4-
platform: 'browser',
5-
cjs: { output: 'lib' },
6-
esm: {
7-
output: 'es',
8-
alias: {
9-
'rc-util/lib': 'rc-util/es',
10-
'antd/lib': 'antd/es',
11-
},
12-
},
4+
plugins: ['@rc-component/father-plugin'],
135
});

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@
5555
},
5656
"devDependencies": {
5757
"@ant-design/icons": "^4.7.0",
58+
"@rc-component/father-plugin": "^1.0.1",
5859
"@testing-library/jest-dom": "^5.16.4",
5960
"@testing-library/react": "^13.0.0",
6061
"@types/enzyme": "^3.10.5",
@@ -67,7 +68,7 @@
6768
"antd": "^5.0.1",
6869
"dumi": "^1.1.0",
6970
"eslint": "^7.18.0",
70-
"father": "^4.0.0-rc.8",
71+
"father": "^4.0.0",
7172
"gh-pages": "^3.1.0",
7273
"less": "^4.1.3",
7374
"np": "^5.0.3",

src/CompatibleConsumer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ConfigProvider } from 'antd';
22
import type { ConfigConsumerProps } from 'antd/lib/config-provider';
33

4-
export { ConfigConsumerProps };
4+
export type { ConfigConsumerProps };
55

66
const MergedConfigConsumer = ConfigProvider.ConfigContext.Consumer;
77

src/form/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Form from './Form';
22

3-
export {
3+
export type {
44
FormProps,
55
FormComponentProps,
66
FormCreateOption,
77
ValidateCallback,
88
ValidationRule,
99
} from './Form';
10-
export { FormItemProps } from './FormItem';
10+
export type { FormItemProps } from './FormItem';
1111

1212
export default Form;

0 commit comments

Comments
 (0)