From d28e44b92a03ab6c7ff5635bb44be2217c36ab65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8C=E8=B4=A7=E6=9C=BA=E5=99=A8=E4=BA=BA?= Date: Wed, 2 Aug 2023 17:39:55 +0800 Subject: [PATCH] fix: compile config --- packages/icons-react/.fatherrc.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/packages/icons-react/.fatherrc.js b/packages/icons-react/.fatherrc.js index 43ed7e891..8069e43f5 100644 --- a/packages/icons-react/.fatherrc.js +++ b/packages/icons-react/.fatherrc.js @@ -1,17 +1,21 @@ import { defineConfig } from 'father'; - - - const config = defineConfig({ // Locked version only supports 1.0.0 plugins: ['@rc-component/father-plugin'], esm: { transformer: 'swc', + platform: 'browser', + targets: { + ie: 11, + }, }, cjs: { transformer: 'swc', - } + targets: { + ie: 11, + }, + }, }); if (process.env.NODE_ENV !== 'ci') { @@ -42,4 +46,4 @@ if (process.env.NODE_ENV !== 'ci') { }; } -export default config; \ No newline at end of file +export default config;