Skip to content

Commit

Permalink
chore(components): optimize build size and env
Browse files Browse the repository at this point in the history
  • Loading branch information
fu050409 committed Jan 31, 2025
1 parent 089b640 commit f05e9e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/components/farm.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ export default defineConfig({
},
output: {
entryFilename: 'index.js',
targetEnv: 'library-browser',
targetEnv: 'library',
format: 'esm',
path: 'dist',
},
external: ['react', 'react-dom'],
sourcemap: false,
presetEnv: false,
minify: false,
Expand Down

0 comments on commit f05e9e6

Please sign in to comment.