mirror of
https://github.com/hanzoai/base.git
synced 2026-10-21 03:41:50 +00:00
20 lines
413 B
TypeScript
20 lines
413 B
TypeScript
import { defineConfig } from 'tsup'
|
|
|
|
export default defineConfig({
|
|
entry: {
|
|
'core/index': 'src/core/index.ts',
|
|
'compat/index': 'src/compat/index.ts',
|
|
'react/index': 'src/react/index.ts',
|
|
'crdt/index': 'src/crdt/index.ts',
|
|
},
|
|
format: ['esm'],
|
|
dts: true,
|
|
sourcemap: true,
|
|
clean: true,
|
|
splitting: true,
|
|
treeshake: true,
|
|
target: 'es2020',
|
|
outDir: 'dist',
|
|
external: ['react'],
|
|
})
|