From f6c093fbb78d27aa8d846c89e6dcfee0980e767d Mon Sep 17 00:00:00 2001 From: arvinxx Date: Tue, 9 May 2023 20:43:37 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20feat:=20=E4=BC=98=E5=8C=96=20fathe?= =?UTF-8?q?r=20=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .fatherrc.base.ts | 6 ++++++ packages/bar/.fatherrc.ts | 7 ++----- packages/foo/.fatherrc.ts | 7 ++----- 3 files changed, 10 insertions(+), 10 deletions(-) create mode 100644 .fatherrc.base.ts diff --git a/.fatherrc.base.ts b/.fatherrc.base.ts new file mode 100644 index 0000000..292a4af --- /dev/null +++ b/.fatherrc.base.ts @@ -0,0 +1,6 @@ +import { defineConfig } from 'father'; + +export default defineConfig({ + esm: { output: 'es' }, + cjs: { output: 'lib', platform: 'browser' }, +}); diff --git a/packages/bar/.fatherrc.ts b/packages/bar/.fatherrc.ts index b90b723..fb92946 100644 --- a/packages/bar/.fatherrc.ts +++ b/packages/bar/.fatherrc.ts @@ -1,6 +1,3 @@ -import { defineConfig } from 'father'; +import config from '../../.fatherrc.base'; -export default defineConfig({ - esm: { output: 'es' }, - cjs: { output: 'lib' }, -}); +export default config; diff --git a/packages/foo/.fatherrc.ts b/packages/foo/.fatherrc.ts index b90b723..fb92946 100644 --- a/packages/foo/.fatherrc.ts +++ b/packages/foo/.fatherrc.ts @@ -1,6 +1,3 @@ -import { defineConfig } from 'father'; +import config from '../../.fatherrc.base'; -export default defineConfig({ - esm: { output: 'es' }, - cjs: { output: 'lib' }, -}); +export default config;