mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-07-06 14:01:30 +08:00
18 lines
480 B
TypeScript
18 lines
480 B
TypeScript
import { defineConfig } from 'tsdown'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
index: 'src/index.ts',
|
|
'components/index': 'src/components/index.ts',
|
|
'icons/index': 'src/components/icons/index.ts',
|
|
'hooks/index': 'src/hooks/index.ts',
|
|
'utils/index': 'src/utils/index.ts'
|
|
},
|
|
outDir: 'dist',
|
|
format: ['esm', 'cjs'],
|
|
clean: true,
|
|
dts: true,
|
|
tsconfig: 'tsconfig.json',
|
|
external: ['react', 'react-dom', 'motion', 'tailwindcss', 'unist-util-visit']
|
|
})
|