From d35c758c0cbbe9659efb45d6f68e95d3460fb87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AB=98=E8=89=B3=E5=85=B5?= Date: Mon, 18 May 2026 19:02:35 +0800 Subject: [PATCH] chore: use rc father plugin --- .fatherrc.js | 6 +----- package.json | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.fatherrc.js b/.fatherrc.js index bbff8ac..96268ae 100644 --- a/.fatherrc.js +++ b/.fatherrc.js @@ -1,9 +1,5 @@ import { defineConfig } from 'father'; export default defineConfig({ - platform: 'browser', - cjs: { output: 'lib' }, - esm: { - output: 'es', - }, + plugins: ['@rc-component/father-plugin'], }); diff --git a/package.json b/package.json index 492ee0a..3de2e82 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@ant-design/tools": "^18.0.2", - "@rc-component/father-plugin": "^1.0.0", + "@rc-component/father-plugin": "^2.2.0", "@rc-component/np": "^1.0.0", "@testing-library/jest-dom": "^6.1.4", "@testing-library/react": "^16.0.0", @@ -55,7 +55,7 @@ "@umijs/fabric": "^4.0.1", "dumi": "^2.1.0", "eslint": "^8.51.0", - "father": "^4.0.0", + "father": "^4.4.4", "jest-canvas-mock": "^2.5.2", "less": "^4.2.0", "rc-test": "^7.0.13",