Skip to content

Commit

Permalink
✨ feat: 优化 father 构建配置
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx committed May 9, 2023
1 parent 4b5981e commit f6c093f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 6 additions & 0 deletions .fatherrc.base.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import { defineConfig } from 'father';

export default defineConfig({
esm: { output: 'es' },
cjs: { output: 'lib', platform: 'browser' },
});
7 changes: 2 additions & 5 deletions packages/bar/.fatherrc.ts
Original file line number Diff line number Diff line change
@@ -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;
7 changes: 2 additions & 5 deletions packages/foo/.fatherrc.ts
Original file line number Diff line number Diff line change
@@ -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;

1 comment on commit f6c093f

@vercel
Copy link

@vercel vercel bot commented on f6c093f May 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.